Class: TypefactoryGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- TypefactoryGenerator
- Defined in:
- lib/generators/typefactory/typefactory_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/generators/typefactory/typefactory_generator.rb', line 5 def self.source_root @source_root = File.("../templates", __FILE__) end |
Instance Method Details
#config ⇒ Object
9 10 11 |
# File 'lib/generators/typefactory/typefactory_generator.rb', line 9 def config copy_file "initializer.rb", "config/initializers/typefactory.rb" end |