Module: ImpressionistController::ClassMethods

Defined in:
app/controllers/impressionist_controller.rb

Instance Method Summary collapse

Instance Method Details

#impressionist(opts = {}) ⇒ Object


5
6
7
8
9
10
11
# File 'app/controllers/impressionist_controller.rb', line 5

def impressionist(opts={})
  if Rails::VERSION::MAJOR >= 5
    before_action { |c| c.impressionist_subapp_filter(opts) }
  else
    before_filter { |c| c.impressionist_subapp_filter(opts) }
  end
end