Class: Rails::Generators::AppGenerator Private
- Inherits:
-
Object
- Object
- Rails::Generators::AppGenerator
- Defined in:
- lib/railsmdb/ext/rails/generators/rails/app/app_generator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Monkeypatch the Rails AppGenerator class to make it emit a Mongoid-friendly application.
Constant Summary
Constants included from Railsmdb::Generators::Setup::Concerns::Setuppable
Railsmdb::Generators::Setup::Concerns::Setuppable::AUTO_ENCRYPTION_CONFIG, Railsmdb::Generators::Setup::Concerns::Setuppable::GemfileEntry, Railsmdb::Generators::Setup::Concerns::Setuppable::KEY_VAULT_CONFIG, Railsmdb::Generators::Setup::Concerns::Setuppable::PRELOAD_MODELS_OPTION
Instance Method Summary collapse
-
#create_db_files ⇒ Object
private
Overridden to ignore the “skip_active_record” guard.
Methods included from Railsmdb::Generators::Setup::Concerns::Setuppable
#add_encryption_options_to_mongoid_yml, #add_mongodb_local_master_key_to_credentials, #add_mongoid_gem_entries, #confirm_legal_shenanigans, #fetch_crypt_shared, #mongoid_initializer, #mongoid_yml, #railsmdb, #save_initial_path
Instance Method Details
#create_db_files ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Overridden to ignore the “skip_active_record” guard. We always want the db folder, even when active record is being skipped.
43 44 45 |
# File 'lib/railsmdb/ext/rails/generators/rails/app/app_generator.rb', line 43 def create_db_files build(:db) end |