Class: ActionController::Caching::Actions::ActionCacheFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/rails-cache_control/action_controller/caching/actions.rb

Instance Method Summary collapse

Instance Method Details

#around_with_expires_in(controller, &block) ⇒ Object



5
6
7
8
9
# File 'lib/rails-cache_control/action_controller/caching/actions.rb', line 5

def around_with_expires_in(controller, &block)
  expires_in = @store_options[:expires_in]
  controller.expires_in(expires_in, public: true) if expires_in
  around_without_expires_in(controller, &block)
end