Sha256: fec30ec5efe7e7764c181c3d173ec535ac12b6d07709a91cde4897baaededd65
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
module AbstractController class Error < StandardError; end class ActionNotFound < StandardError; end class DoubleRenderError < Error DEFAULT_MESSAGE = "Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like \"redirect_to(...) and return\"." def initialize(message = nil) super(message || DEFAULT_MESSAGE) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
halorgium-actionpack-3.0.pre | lib/abstract_controller/exceptions.rb |