Module: LastLine::Controller::ClassMethods
- Defined in:
- lib/last_line/controller.rb
Instance Method Summary collapse
- #allow_get(action) ⇒ Object
- #allow_gets(*args) ⇒ Object
-
#protect_from_gets ⇒ Object
When added on.
- #protected_get(action) ⇒ Object
Instance Method Details
#allow_get(action) ⇒ Object
19 20 21 |
# File 'lib/last_line/controller.rb', line 19 def allow_get action skip_before_filter :block_gets, :only => action end |
#allow_gets(*args) ⇒ Object
23 24 25 |
# File 'lib/last_line/controller.rb', line 23 def allow_gets *args skip_before_filter :block_gets, *args end |
#protect_from_gets ⇒ Object
When added on
10 11 12 |
# File 'lib/last_line/controller.rb', line 10 def protect_from_gets append_before_filter :block_gets end |
#protected_get(action) ⇒ Object
14 15 16 17 |
# File 'lib/last_line/controller.rb', line 14 def protected_get action skip_before_filter :block_gets, :only => action prepend_before_filter :protect_get, :only => action end |