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

generator(args=self.default_arguments, options={}, config={}) Instance Public methods

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

subclasses() Class Public methods Track all generators subclasses.

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

generate(what, *args) Instance Public methods Generate something using a generator

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

migration_dir() Instance Public methods

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

remove_hook_for(*names) Class Public methods Remove a previously added hook

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

git(commands={}) Instance Public methods Run a command in git.

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

test_add_gem() Instance Public methods

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

create_generated_attribute(attribute_type, name = 'test', index = nil) Instance Public methods

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

test_add_path_gem() Instance Public methods

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

revoke!() Instance Public methods

2025-01-10 15:47:30