module ActiveModel::Validations::ClassMethods
Public Instance Methods
has_validations?()
click to toggle source
# File lib/validation_hints.rb, line 11 def has_validations? ! self.validators.empty? end
has_validations_for?(attribute)
click to toggle source
# File lib/validation_hints.rb, line 15 def has_validations_for?(attribute) ! self.validators_on(attribute).empty? end