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

Returns:

  • (Boolean)


350
351
352
# File 'lib/action_controller/filters.rb', line 350

def after?
  self.class == AfterFilter
end

#around?Boolean

Returns:

  • (Boolean)


354
355
356
# File 'lib/action_controller/filters.rb', line 354

def around?
  self.class == AroundFilter
end

#before?Boolean

Returns:

  • (Boolean)


346
347
348
# File 'lib/action_controller/filters.rb', line 346

def before?
  self.class == BeforeFilter
end