Smart usage https for rails controllers
Add this line to your application's Gemfile:
gem 'redeemer'And then execute:
$ bundle
Or install it yourself as:
$ gem install redeemer
In rails controller just specify:
ensure_secure_protocol
or:
ensure_http
or:
keep_current_protocol
- Fork it ( https://github.com/[my-github-username]/redeemer/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request