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

migration_template(source, destination, config = {}) Instance Public methods Creates

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

environment(data=nil, options={}, &block) Instance Public methods Adds a

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

relative_existing_migration() Instance Public methods

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

fallbacks() Class Public methods Hold configured generators fallbacks. If a

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

gem_group(*names, &block) Instance Public methods Wraps gem entries inside

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

no_color!() Class Public methods Remove the color from output.

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

class_path() Instance Protected methods

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

destination(path) Instance Public methods Sets the destination of generator

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

wrap_with_namespace(content) Instance Protected methods

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

path(name, path, comment = nil) Class Public methods

2025-01-10 15:47:30