activerecord-session_store 0.1.1.pre → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activerecord-session_store might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/action_dispatch/session/active_record_store.rb +1 -0
- data/lib/active_record/session_store/extension/logger_silencer.rb +1 -0
- data/lib/active_record/session_store/session.rb +9 -0
- data/lib/active_record/session_store/sql_bypass.rb +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 839c59e0fa4e372772d868d85da9eeffca93cc4e
|
4
|
+
data.tar.gz: 27fe06dcf42428ab0530b19718c987cb7df0c05d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a4f5b07c3a2973c68d5517e2609f0b23297810706cfa577a1b3e0e432f100df769eb979be222dd21740d705be8ea1667dbe9445eed724cd47ae4112741019ed
|
7
|
+
data.tar.gz: 16f422ab72d3d3433e1f8db40db4f90ab2a67fee8fbbeca75cce544d4a11e636d28f72c2740018815bec5e1c8e891fa37e404b52e008f077453f832885706dce
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ Run the migration generator:
|
|
21
21
|
Then, set your session store in `config/initializers/session_store.rb`:
|
22
22
|
|
23
23
|
```ruby
|
24
|
-
|
24
|
+
MyApp::Application.config.session_store :active_record_store, :key => '_my_app_session'
|
25
25
|
```
|
26
26
|
|
27
27
|
Configuration
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require "active_support/core_ext/module/attribute_accessors"
|
2
|
+
|
1
3
|
module ActiveRecord
|
2
4
|
module SessionStore
|
3
5
|
# The default Active Record class.
|
@@ -13,6 +15,13 @@ module ActiveRecord
|
|
13
15
|
before_save :marshal_data!
|
14
16
|
before_save :raise_on_session_data_overflow!
|
15
17
|
|
18
|
+
# This method is defiend in `protected_attributes` gem. We can't check for
|
19
|
+
# `attr_accessible` as Rails also define this and raise `RuntimeError`
|
20
|
+
# telling you to use the gem.
|
21
|
+
if respond_to?(:accessible_attributes)
|
22
|
+
attr_accessible :session_id, :data
|
23
|
+
end
|
24
|
+
|
16
25
|
class << self
|
17
26
|
def data_column_size_limit
|
18
27
|
@data_column_size_limit ||= columns_hash[data_column_name].limit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-session_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -133,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: 1.9.3
|
134
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- - "
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: '0'
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
141
|
rubygems_version: 2.4.5
|