1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers/sweeper_controller.rb

9 lines
274 B
Ruby
Raw Normal View History

class SweeperController < ActionController::Base
def expire_action_proxy(options)
options[:only_path] = true
path = Rails.application.routes.url_helpers.url_for(options)
fragment_name = "#{LocalImpressHost}#{path}"
expire_fragment(fragment_name)
end
end