Class: Rcap::Generators::ModelsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Rcap::Generators::ModelsGenerator
- Defined in:
- lib/generators/rcap/models/models_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner ⇒ Object
13 14 15 |
# File 'lib/generators/rcap/models/models_generator.rb', line 13 def self. "rails generate rcap:models" end |
.source_root ⇒ Object
9 10 11 |
# File 'lib/generators/rcap/models/models_generator.rb', line 9 def self.source_root @_rcap_source_root ||= File.(File.join(File.dirname(__FILE__), 'templates')) end |
Instance Method Details
#copy_lib_files ⇒ Object
21 22 23 |
# File 'lib/generators/rcap/models/models_generator.rb', line 21 def copy_lib_files copy_file 'modules/rcap.rb', 'lib/rcap.rb' end |
#copy_model_files ⇒ Object
17 18 19 |
# File 'lib/generators/rcap/models/models_generator.rb', line 17 def copy_model_files directory 'models', 'app/models' end |