Sha256: d7c1d81b81b01b778c80f78c0f0714f9dab7dd3247f550aa248d3f9cbe8cdcf6
Contents?: true
Size: 540 Bytes
Versions: 5
Compression:
Stored size: 540 Bytes
Contents
require_relative '../base' module AwsRecord module Generators class ModelGenerator < Base def initialize(args, *options) self.class.source_root File.expand_path('../templates', __FILE__) super end def create_model template "model.rb", File.join("app/models", class_path, "#{file_name}.rb") end def create_table_config template "table_config.rb", File.join("db/table_config", class_path, "#{file_name}_config.rb") if options["table_config"] end end end end
Version data entries
5 entries across 5 versions & 1 rubygems