Class: Cequel::Record::RecordGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/cequel/record/record_generator.rb

Overview

Rails generator to create a record class

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#create_recordObject

Create a Record implementation

Since:

  • 1.0.0


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