module RestrictCache::RailsExt::ActionController::ClassMethods
Public Instance Methods
cache_sweep_action(*args)
click to toggle source
# File lib/restrict_cache/rails_ext/action_controller.rb, line 7 def cache_sweep_action(*args) options = args.extract_options! actions = args.empty? ? {} : {only: args} options.merge! actions unless actions.empty? around_action :sweep_restrict_cache, options end