Class: ActiveRecord::Generators::ApplicationRecordGenerator

Inherits:
Rails::Generators::Base show all
Defined in:
activerecord/lib/rails/generators/active_record/application_record/application_record_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from Rails::Generators::Base

base_root, class_option, default_source_root, desc, exit_on_failure?, hide!, hook_for, inherited, namespace, remove_hook_for, source_root

Methods included from Rails::Generators::Actions

#add_source, #environment, #gem, #gem_group, #generate, #git, #github, #initialize, #initializer, #lib, #rails_command, #rake, #rakefile, #readme, #route, #vendor

Instance Method Details

#create_application_recordObject

FIXME: Change this file to a symlink once RubyGems 2.5.0 is required.



11
12
13
# File 'activerecord/lib/rails/generators/active_record/application_record/application_record_generator.rb', line 11

def create_application_record
  template "application_record.rb", application_record_file_name
end