Type:
Module
Constants:

DEFAULT_ALIASES : { rails: { actions: '-a', orm: '-o', javascripts: '-j', javascript_engine: '-je', resource_controller: '-c', scaffold_controller: '-c', stylesheets: '-y', stylesheet_engine: '-se', template_engine: '-e', test_framework: '-t' }, test_unit: { fixture_replacement: '-r', } }

DEFAULT_OPTIONS : { rails: { assets: true, force_plural: false, helper: true, integration_tool: nil, javascripts: true, javascript_engine: :js, orm: false, resource_controller: :controller, resource_route: true, scaffold_controller: :scaffold_controller, stylesheets: true, stylesheet_engine: :css, test_framework: false, template_engine: :erb } }
RAILS_DEV_PATH : File.expand_path("../../../../../..", File.dirname(__FILE__))

We need to store the RAILS_DEV_PATH in a constant, otherwise the path can change in Ruby 1.8.7 when we FileUtils.cd.

RESERVED_NAMES : %w[application destroy plugin runner test]
exists?
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::Actions/Rails::Generators::Actions::CreateMigration

exists?() Instance Public methods Alias for:

2025-01-10 15:47:30
i18n_scope
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::NamedBase

i18n_scope() Instance Protected methods

2025-01-10 15:47:30
namespaced?
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::NamedBase

namespaced?() Instance Protected methods

2025-01-10 15:47:30
add_source
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::Actions

add_source(source, options={}) Instance Public methods Add the given source

2025-01-10 15:47:30
singular_table_name
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::NamedBase

singular_table_name() Instance Protected methods

2025-01-10 15:47:30
assert_field_default_value
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::Testing/Rails::Generators::Testing::Assertions

assert_field_default_value(attribute_type, value) Instance Public methods Asserts

2025-01-10 15:47:30
new
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::AppBase/Rails::Generators::AppBase::GemfileEntry

new(name, version, comment, options = {}, commented_out = false) Class Public methods

2025-01-10 15:47:30
migration_file_name
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::Actions/Rails::Generators::Actions::CreateMigration

migration_file_name() Instance Public methods

2025-01-10 15:47:30
create_migration
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::Migration

create_migration(destination, data, config = {}, &block) Instance Public methods

2025-01-10 15:47:30
class_name
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::NamedBase

class_name() Instance Protected methods

2025-01-10 15:47:30