Class: ActionController::Filters::Filter
- Inherits:
-
ActiveSupport::Callbacks::Callback
- Object
- ActiveSupport::Callbacks::Callback
- ActionController::Filters::Filter
- Defined in:
- lib/action_controller/filters.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
- #after? ⇒ Boolean
- #around? ⇒ Boolean
-
#before? ⇒ Boolean
override these to return true in appropriate subclass.
-
#initialize(kind, method, options = {}) ⇒ Filter
constructor
A new instance of Filter.
-
#update_options!(other) ⇒ Object
Make sets of strings from :only/:except options.
Constructor Details
#initialize(kind, method, options = {}) ⇒ Filter
Returns a new instance of Filter.
107 108 109 110 |
# File 'lib/action_controller/filters.rb', line 107 def initialize(kind, method, = {}) super end |
Instance Method Details
#after? ⇒ Boolean
117 118 119 |
# File 'lib/action_controller/filters.rb', line 117 def after? false end |
#around? ⇒ Boolean
121 122 123 |
# File 'lib/action_controller/filters.rb', line 121 def around? false end |
#before? ⇒ Boolean
override these to return true in appropriate subclass
113 114 115 |
# File 'lib/action_controller/filters.rb', line 113 def before? false end |
#update_options!(other) ⇒ Object
Make sets of strings from :only/:except options
126 127 128 129 130 131 132 133 134 135 |
# File 'lib/action_controller/filters.rb', line 126 def (other) if other (other) if other[:skip] (other[:skip]) end end .update(other) end |