Class: ActionController::Filters::Filter

Inherits:
ActiveSupport::Callbacks::Callback
  • Object
show all
Defined in:
lib/action_controller/filters.rb

Overview

:nodoc:

Direct Known Subclasses

AfterFilter, AroundFilter, BeforeFilter

Instance Method Summary collapse

Instance Method Details

#after?Boolean



111
112
113
# File 'lib/action_controller/filters.rb', line 111

def after?
  self.class == AfterFilter
end

#around?Boolean



115
116
117
# File 'lib/action_controller/filters.rb', line 115

def around?
  self.class == AroundFilter
end

#before?Boolean



107
108
109
# File 'lib/action_controller/filters.rb', line 107

def before?
  self.class == BeforeFilter
end