Sha256: 31db94863e61a95fb7cd102294e522ba8b668c8851f11aa8de6ead41971a349a

Contents?: true

Size: 313 Bytes

Versions: 4

Compression:

Stored size: 313 Bytes

Contents

# encoding: UTF-8

module Mojito::Controllers::Runtime
	
	module UrlScheme
		
		def SCHEME(scheme)
			proc do
				case scheme
				when :https, :secure
					request.scheme === 'https'
				when :http, nil
					request.scheme === 'http'
				else
					request.scheme === scheme.to_s
				end
			end
		end
		
	end
	
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mojito-0.2.6 lib/mojito/controllers/runtime/url_scheme.rb
mojito-0.2.5 lib/mojito/controllers/runtime/url_scheme.rb
mojito-0.2.4 lib/mojito/controllers/runtime/url_scheme.rb
mojito-0.2.3 lib/mojito/controllers/runtime/url_scheme.rb