Class: Upgrow::Generators::RecordGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Upgrow::Generators::RecordGenerator
- Includes:
- Helper
- Defined in:
- lib/generators/upgrow/record/record_generator.rb
Instance Method Summary collapse
Methods included from Helper
#class_name, included, #module_namespacing, #move_file, #namespace_content
Instance Method Details
#create_record_file ⇒ Object
10 11 12 13 14 15 |
# File 'lib/generators/upgrow/record/record_generator.rb', line 10 def create_record_file template( 'record.rb', File.join('app/records', class_path, "#{file_name}_record.rb") ) end |