Class: Billfold::ModelsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/billfold/models_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



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_modelsObject



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