Class: Cequel::Record::RecordGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Cequel::Record::RecordGenerator
- Defined in:
- lib/cequel/record/record_generator.rb
Overview
Rails generator to create a record class
Instance Method Summary collapse
-
#create_record ⇒ Object
Create a Record implementation.
Instance Method Details
#create_record ⇒ Object
Create a Record implementation
18 19 20 21 |
# File 'lib/cequel/record/record_generator.rb', line 18 def create_record template 'record.rb', File.join('app/models', class_path, "#{file_name}.rb") end |