Sha256: 2f64c7170d657a87e5b2f5331f3063010f0b3a5e75adc8ce133e13a5ee8cc83e
Contents?: true
Size: 964 Bytes
Versions: 7
Compression:
Stored size: 964 Bytes
Contents
Rails.application.routes.draw do root to: "application#home" get "/limit_session_lifetime_home" => "limit_session_lifetime#home", :as => :limit_session_lifetime_home get "/limit_session_lifetime_redirect_home" => "limit_session_lifetime#redirect_home" get "/bind_session_to_ip_address_home" => "bind_session_to_ip_address#home", :as => :bind_session_to_ip_address_home get "/bind_session_to_ip_address_redirect_home" => "bind_session_to_ip_address#redirect_home" get "/combined_controller_home" => "combined#home", :as => :combined_home get "/combined_controller_redirect_home" => "combined#redirect_home" get "/customized_controller_home" => "customized_on_invalid_session#home", :as => :customized_controller_home end class ApplicationController < ActionController::Base protect_from_forgery with: :exception def home if Rails::VERSION::MAJOR >= 5 render plain: "testing" else render text: "testing" end end end
Version data entries
7 entries across 7 versions & 1 rubygems