Module: RailsCom::FilterHelper

Defined in:
lib/rails_com/action_controller/controller_helper.rb

Instance Method Summary collapse

Instance Method Details

#whether_filter(filter) ⇒ Object



21
22
23
# File 'lib/rails_com/action_controller/controller_helper.rb', line 21

def whether_filter(filter)
  self.get_callbacks(:process_action).map(&:filter).include?(filter.to_sym)
end