class method
self.new
Ruby on Rails 7.0.10
Since v4.1.16Signature
self.new(message = nil)
No documentation comment.
Parameters
-
messageopt = nil
Source
# File activerecord/lib/active_record/errors.rb, line 245
def initialize(message = nil)
super(message || "Database not found")
end
Defined in activerecord/lib/active_record/errors.rb line 245
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::NoDatabaseError