Sha256: 37b81e64eda020b659953c7c900291ee49d3fb0fecb7eb1ab19a7a7f35f6d1ba
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
instiki-0.10.1 | lib/instiki_errors.rb |
instiki-0.10.2 | lib/instiki_errors.rb |