Sha256: 6c7c35e9d9d1c8ecdd14539a90df0b159dcc1b1defb2c934ddc1c27b0f40c5f1

Contents?: true

Size: 316 Bytes

Versions: 5

Compression:

Stored size: 316 Bytes

Contents

class OutdatedBrowserController < ApplicationController

	layout "outdated_browser"

	before_action :my_previous_url

	def index
	end

	def javascript_disabled
	end

	private

		def my_previous_url
			session[:my_previous_url] = if request.referer
				URI(request.referer).path
			else
				root_path
			end
		end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
outdated_browser-0.3.7 app/controllers/outdated_browser_controller.rb
outdated_browser-0.3.6 app/controllers/outdated_browser_controller.rb
outdated_browser-0.3.5 app/controllers/outdated_browser_controller.rb
outdated_browser-0.3.4 app/controllers/outdated_browser_controller.rb
outdated_browser-0.3.3 app/controllers/outdated_browser_controller.rb