instance method
add_to_base
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v3.0.20Signature
add_to_base(msg)
No documentation comment.
Parameters
-
msgreq
Source
# File activemodel/lib/active_model/deprecated_error_methods.rb, line 18
def add_to_base(msg)
ActiveSupport::Deprecation.warn "Errors#add_to_base(msg) has been deprecated, use Errors#[:base] << msg instead"
self[:base] << msg
end
Defined in activemodel/lib/active_model/deprecated_error_methods.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::DeprecatedErrorMethods