Sha256: c0d9098dd98d203124f5096f177de0f52c80a645c6e32fb4d4e7099a4339be65

Contents?: true

Size: 379 Bytes

Versions: 83

Compression:

Stored size: 379 Bytes

Contents

require 'rails/generators'

#if no argument/-h/--help is passed to rails generate command, then
#it generates the help associated.
if [nil, "-h", "--help"].include?(ARGV.first)
  Rails::Generators.help 'generate'
  exit
end

name = ARGV.shift

root = defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root
Rails::Generators.invoke name, ARGV, behavior: :invoke, destination_root: root

Version data entries

83 entries across 81 versions & 10 rubygems

Version Path
railties-4.2.7.rc1 lib/rails/commands/generate.rb
railties-5.0.0 lib/rails/commands/generate.rb
railties-5.0.0.rc2 lib/rails/commands/generate.rb
railties-5.0.0.racecar1 lib/rails/commands/generate.rb
railties-5.0.0.rc1 lib/rails/commands/generate.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/generate.rb
railties-5.0.0.beta4 lib/rails/commands/generate.rb
railties-4.2.6 lib/rails/commands/generate.rb
railties-4.2.6.rc1 lib/rails/commands/generate.rb
railties-4.2.5.2 lib/rails/commands/generate.rb
railties-5.0.0.beta3 lib/rails/commands/generate.rb
railties-5.0.0.beta2 lib/rails/commands/generate.rb
activejob-lock-0.0.2 rails/railties/lib/rails/commands/generate.rb
railties-5.0.0.beta1.1 lib/rails/commands/generate.rb
railties-4.2.5.1 lib/rails/commands/generate.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/commands/generate.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/commands/generate.rb
railties-5.0.0.beta1 lib/rails/commands/generate.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/commands/generate.rb
railties-4.2.5 lib/rails/commands/generate.rb