molten-trunk/molten5_withgrid/lib/authentication_system.rb
# Redirects the user to the default action if the contact isn't being blocked by a filter...
# otherwise, the contact is redirected to +session[:intended_uri]+.
Redirects the user to the default action if the contact isn't being blocked by a filter
otherwise, the contact is redirected to +session[:intended_uri]+.
Redirects the user to the default action if the contact isn ' t being blocked by a filter otherwise the contact is redirected to + session [ : intended_uri ] + .
def redirect_to_stored_or_default(default)
    if session[:intended_uri].nil?
      if (RAILS_ENV == 'production') and (request.env['SERVER_NAME'] != 'localhost')
        redirect_to :protocol => 'https://', :controller => '/home'
      else
        redirect_to :controller => '/home'
      end
    else
      redirect_to session[:intended_uri]
      session[:intended_uri] = nil
    end
  end
def redirect_to_stored_or_default ( default ) if session [ :intended_uri ] . nil? if ( RAILS_ENV == 'production' ) and ( request . env [ 'SERVER_NAME' ] != 'localhost' ) redirect_to :protocol => 'https://' , :controller => '/home' else redirect_to :controller => '/home' end else redirect_to session [ :intended_uri ] session [ :intended_uri ] = nil end end
Redirects the user to the default action if the contact isn't being blocked by a filter...
otherwise, the contact is redirected to +session[:intended_uri]+.
Redirects the user to the default action if the contact isn ' t being blocked by a filter ... otherwise the contact is redirected to + session [ : intended_uri ] + .
default