Sha256: aaebe60566188653a48b8c05f04c4fd3b02b6861000d4928f66a7ebc8276854a
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
module AuthAssistant module Helpers module LocalHost def localhost_block(&block) with_output_buffer(&block) if localhost? end def not_localhost_block(&block) with_output_buffer(&block) if !localhost? end def localhost? ['localhost', '127.0.0.1'].include?(request.host) end def self.included(base) base.helper_method :localhost_block, :not_localhost_block, :localhost? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auth-assistant-0.4.0 | lib/auth_assistant/helpers/localhost.rb |