Browse Source

+cookies serializer for rails apps with version >= 4.1

master
Dmitrii Golub 11 years ago
parent
commit
7505dbf8c8
  1. 1
      .travis.yml
  2. 3
      spec/rails_app/config/initializers/cookies_serializer.rb
  3. 1
      two_factor_authentication.gemspec

1
.travis.yml

@ -3,6 +3,7 @@ language: ruby
env:
- "RAILS_VERSION=3.2.0"
- "RAILS_VERSION=4.0.0"
- "RAILS_VERSION=4.1.1"
- "RAILS_VERSION=master"
rvm:

3
spec/rails_app/config/initializers/cookies_serializer.rb

@ -0,0 +1,3 @@
if Rails.version > '4.1.0'
Rails.application.config.action_dispatch.cookies_serializer = :json
end

1
two_factor_authentication.gemspec

@ -33,4 +33,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec-rails'
s.add_development_dependency 'capybara'
s.add_development_dependency 'pry'
end

Loading…
Cancel
Save