Commit 413fc25bf0a9d0a55499d7b4890f118a1167567e

Authored by Braulio Bhavamitra
1 parent cd68aebb

Fix support for ruby 2.3

Showing 2 changed files with 3 additions and 1 deletions   Show diff stats
Gemfile
... ... @@ -31,6 +31,7 @@ gem 'whenever', :require => false
31 31 gem 'eita-jrails', '~> 0.10.0', require: 'jrails'
32 32 gem 'diffy', '~> 3.0'
33 33 gem 'slim'
  34 +gem 'activerecord-session_store', ('1.0.0.pre' if RUBY_VERSION >= '2.3.0')
34 35  
35 36 # API dependencies
36 37 gem 'grape', '~> 0.12'
... ... @@ -51,7 +52,6 @@ gem 'protected_attributes'
51 52 gem 'rails-observers'
52 53 gem 'actionpack-page_caching'
53 54 gem 'actionpack-action_caching'
54   -gem 'activerecord-session_store'
55 55 gem 'activerecord-deprecated_finders', require: 'active_record/deprecated_finders'
56 56  
57 57 group :production do
... ...
app/models/session.rb
1 1 class Session < ActiveRecord::SessionStore::Session
2 2  
  3 + attr_accessible :session_id, :data
  4 +
3 5 # removed and redefined on super class
4 6 def self.find_by_session_id session_id
5 7 super
... ...