ryankinderman / mimic_ssl

A Ruby on Rails plugin that allows an application using the ssl_requirement plugin to behave as if there is an SSL server running when there isn't.

This URL has Read+Write access

mimic_ssl / init.rb
100644 8 lines (8 sloc) 0.228 kb
1
2
3
4
5
6
7
8
if ENV['MIMIC_SSL'] == "true"
  require 'try_require'
  MimicSsl.try_require \
    'ssl_requirement',
    'SSL_REQUIREMENT_PATH',
    File.expand_path("#{File.dirname(__FILE__)}/../ssl_requirement/lib")
  require 'mimic_ssl'
end