method
app_const_base
v3.0.0 -
Show latest stable
- Class:
Rails::Generators::AppGenerator
app_const_base()protected
No documentation available.
# File railties/lib/rails/generators/rails/app/app_generator.rb, line 367
def app_const_base
defined_app_name # ensures the correct app_name if it's already defined
@app_const_base ||= defined_app_const_base || app_name.gsub(/\W/, '_').squeeze('_').camelize
end