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

namespace() Instance Protected methods

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

uncountable?() Instance Protected methods

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

set_migration_assigns!(destination) Instance Public methods

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

namespace(name=nil) Class Public methods Convenience method to get the namespace

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

route(routing_code) Instance Public methods Make an entry in Rails routing file

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

invoke(namespace, args=ARGV, config={}) Class Public methods Receives a namespace

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

github(name, github, branch = nil, comment = nil) Class Public methods

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

assert_no_directory(relative) Instance Public methods Alias for:

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

test_add_github_gem() Instance Public methods

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

assert_method(method, content) Instance Public methods Alias for:

2025-01-10 15:47:30