Skip to content

A gem that decides whether to use TLS encryption or not on a per-environment basis in Rails.

License

Notifications You must be signed in to change notification settings

bukowskis/protocool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Protocool

Decides whether to use TLS encryption or not on a per-environment basis in Rails. Inspired by this discussion.

Installation

gem install protocool

Usage

Syntax

# In development mode:
Protocool.https   # => 'http'

# In any other environment:
Protocool.https   # => 'https'

Examples

In your routes:

scope constraints: { protocol: Protocool.protocol } do
  # ...
end

About

A gem that decides whether to use TLS encryption or not on a per-environment basis in Rails.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages