module ApiResponseCache::Actions::ClassMethods

Public Instance Methods

cache_response_for(*actions) click to toggle source
# File lib/api_response_cache/actions.rb, line 5
def cache_response_for(*actions)
  options = actions.extract_options!
  filter_options = options.extract!(:if, :unless).merge(only: actions)
  around_action  ApiCacheHandler.new(options), filter_options
end