module ActiveModelWarnings::Compliance
Public Instance Methods
compliant?()
click to toggle source
# File lib/active_model_warnings/compliance.rb, line 4 def compliant? valid? && warnings.empty? end
warnings()
click to toggle source
# File lib/active_model_warnings/compliance.rb, line 8 def warnings @warnings ||= ActiveModel::Errors.new(self) end