Module: NotifyIfInvalid::InstanceMethods
- Defined in:
- lib/notify_if_invalid.rb
Instance Method Summary collapse
Instance Method Details
#check_if_invalid ⇒ Object
22 23 24 25 26 27 |
# File 'lib/notify_if_invalid.rb', line 22 def check_if_invalid return if self.errors.empty? = "#{self.class.to_s} #{self.errors..to_sentence}: #{self.inspect}" error = ValidationError.new Airbrake.notify_or_ignore error end |