Registry / web-framework / bartt-ssl-requirement

bartt-ssl-requirement

JSON →
library1.4.2rbrubygemsunverified

Adds a declarative way of specifying that certain actions should only be allowed to run under SSL, and if they're accessed without it, they should be redirected.

gem install bartt-ssl_requirement
INSTALL
IMPORT
SIG · BARTT-SSL-REQUIREM
B
bartt-ssl-requirement
web-frameworkrubyv1.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SslRequirement
require 'ssl_requirement'

Require SSL for specific actions

require 'ssl_requirement' class ApplicationController < ActionController::Base include SslRequirement ssl_required :create, :update end
Debug
Known issues
breakingOnly works with Rails 2.x and 3.x; not compatible with Rails 4+.
fix
Use the built-in force_ssl method in Rails 4+ or upgrade to a maintained gem.
affects: >= 1.0.0
Upgrade
Version history
1.4.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
20
Amazon
1
Resources
bartt-ssl-requirement — gem install bartt-ssl-requirement · libregistry