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