Class: Billfold::ModelsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Billfold::ModelsGenerator
- Defined in:
- lib/rails/generators/billfold/models_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/rails/generators/billfold/models_generator.rb', line 5 def self.source_root File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#copy_models ⇒ Object
9 10 11 12 |
# File 'lib/rails/generators/billfold/models_generator.rb', line 9 def copy_models copy_file "user.rb", "app/models/user.rb" copy_file "identity.rb", "app/models/identity.rb" end |