1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #10950 from appscape-forks/fix-wrong-method-name

Fix wrong method name
This commit is contained in:
Carlos Antonio da Silva 2013-06-14 15:27:03 -07:00
commit 5529ff8d91

View file

@ -47,7 +47,7 @@ namespace :rails do
gen = Rails::Generators::AppGenerator.new ["rails"], { with_dispatchers: true },
destination_root: Rails.root
File.exists?(Rails.root.join("config", "application.rb")) ?
gen.send(:app_const) : gen.send(:valid_app_const?)
gen.send(:app_const) : gen.send(:valid_const?)
gen
end
end