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

valid_app_const? -> valid_const?

This commit is contained in:
Martin Schürrer 2013-06-15 00:12:02 +02:00
parent 6e34601653
commit 53edda2235

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