Sha256: 52bd5041bb897cdee3885aa940a971abb3dde8c25919746e623a569a9bfa3bb3
Contents?: true
Size: 528 Bytes
Versions: 8
Compression:
Stored size: 528 Bytes
Contents
class AjaxController < ApplicationController after_filter :clear_return_to def framework render end private # Don't return to the framework path, return to root def clear_return_to return unless Ajax.is_enabled? if session[:return_to] =~ %r[#{Ajax.framework_path}] session[:return_to] = session[:return_to].sub(%r[#{Ajax.framework_path}], '/') Rails.logger.info("[ajax] return_to / instead of #{Ajax.framework_path}") end end unloadable # needed when installed as a plugin end
Version data entries
8 entries across 8 versions & 1 rubygems