Sha256: ffa1d89de171b279b54c6419850f5e2da906045645c0cedf8dd5146019951818

Contents?: true

Size: 229 Bytes

Versions: 1

Compression:

Stored size: 229 Bytes

Contents

module CanTango::Permit
  module Helper
    module Host
      def local_host?
        CanTango.config.localhosts.registered.include? request.host
      end

      def public_host?
        !local_host?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-permits-0.1.1 lib/cantango/permit/helper/host.rb