Sha256: 20120db9b510c83a7e35dc0dbc5b94fea35dae5adbb92a563cac77f3edb7c22a
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
# Model methods that want to rollback transactions gracefully # (i.e, returning the user back to the form from which the request was posted) # should raise Instiki::ValidationError. # # E.g. if a model object does # raise "Foo: '#{foo}' is not equal to Bar: '#{bar}'" if (foo != bar) # # then the operation is not committed; Rails returns the user to the page # where s/he was entering foo and bar, and the error message will be displayed # on the page module Instiki class ValidationError < StandardError end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
instiki-0.10.0 | lib/instiki_errors.rb |