Project

protocool

0.0
No commit activity in last 3 years
No release in over 3 years
Decides whether to use TLS encryption or not on a per-environment basis in Rails. Usually people don't have SSL on their local development machines, this gem makes it a configuration less no-brainer to enforce SSL everywhere else.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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