Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+cookies serializer for rails apps with version >= 4.1
  • Loading branch information
Houdini committed May 31, 2014
1 parent 2d71cf0 commit 7505dbf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions 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 change: 1 addition & 0 deletions two_factor_authentication.gemspec
Expand Up @@ -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

0 comments on commit 7505dbf

Please sign in to comment.