Class: Facio::Context
Instance Method Summary collapse
Instance Method Details
#fail!(attr = nil, message = :invalid, options = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/facio/context.rb', line 5 def fail!(attr = nil, = :invalid, = {}) @success = false merge_errors!(attr, , ) raise Facio::ContextFailure, self end |