lib/twitter_auth/controller_extensions.rb in mbleigh-twitter-auth-0.0.1 vs lib/twitter_auth/controller_extensions.rb in mbleigh-twitter-auth-0.0.2
- old
+ new
@@ -89,10 +89,10 @@
# Redirect to the URI stored by the most recent store_location call or
# to the passed default. Set an appropriately modified
# after_filter :store_location, :only => [:index, :new, :show, :edit]
# for any controller you want to be bounce-backable.
def redirect_back_or_default(default=nil)
- redirect_to(session[:return_to] || default || default_location)
+ redirect_to(session[:return_to] || default || self.default_location)
session[:return_to] = nil
end
# Override this method with what you want your 'default default'
# to be (where it will redirect if there's no back and no explicit
\ No newline at end of file