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]
hide_namespaces
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators

hide_namespaces(*namespaces) Class Public methods Also aliased as:

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

regular_class_path() Instance Protected methods

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

base_root() Class Public methods Returns the base root for a common set of generators

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

rakefile(filename, data=nil, &block) Instance Public methods Create a new

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

assert_file(relative, *contents) Instance Public methods Asserts a given file

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

inside_template?() Instance Protected methods

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

assert_migration(relative, *contents, &block) Instance Public methods Asserts

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

identical?() Instance Public methods

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

save() Instance Public methods POST create

2025-01-10 15:47:30
hide!
  • References/Ruby on Rails/Rails/Classes/Rails/Rails::Generators/Rails::Generators::Base

hide!() Class Public methods Convenience method to hide this generator from

2025-01-10 15:47:30