instance method
name
Ruby on Rails 7.2.3
Since v7.2.3Signature
name()
Returns the dasherized application name.
MyApp::Application.new.name => "my-app"
Source
# File railties/lib/rails/application.rb, line 140
def name
self.class.name.underscore.dasherize.delete_suffix("/application")
end
Defined in railties/lib/rails/application.rb line 140
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Application