Module: Rack::DevMark::ActionControllerHelpers::ClassMethods

Defined in:
lib/rack/dev-mark/action_controller_helpers.rb

Instance Method Summary collapse

Instance Method Details

#skip_rack_dev_mark(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/rack/dev-mark/action_controller_helpers.rb', line 5

def skip_rack_dev_mark(options = {})
  before_action_method_name = respond_to?(:before_action) ? :before_action : :before_filter
  public_send(before_action_method_name, options) do
    disable_rack_dev_mark
  end
end