method
on
v2.1.0 -
Show latest stable
- Class:
ActiveModel::DeprecatedErrorMethods
on(attribute)public
No documentation available.
# File activemodel/lib/active_model/deprecated_error_methods.rb, line 3
def on(attribute)
ActiveSupport::Deprecation.warn "Errors#on have been deprecated, use Errors#[] instead"
self[attribute]
end