lockie 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/lockie/rails.rb +4 -5
- data/lib/lockie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f57a835c3e1469c419dbaa9066fe7b20a18081b1bce6f49b61133d66704173c1
|
4
|
+
data.tar.gz: 83eb473b69baa93df63c13f1cc33b41c4304c0a6bdb1bd76ba635030d6aa9b4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d247b223ede7d952fbc1beeb085a393a047067fc88fed0c7eb06ef776331de850b26f98135d6d9f8b977c4edcef921dd6220f4dad93f73e82fb6b22cc8d52ce
|
7
|
+
data.tar.gz: aad9449bb8bf4769b009b80d88fd15e6ba1f4ab85e954cbe890b09ec4796fc42771df02207010586a8bec9e50fc71cdc576fed756722e93396e6dce39c261cc4
|
data/README.md
CHANGED
data/lib/lockie/rails.rb
CHANGED
@@ -2,16 +2,15 @@ require 'lockie/model_helper'
|
|
2
2
|
|
3
3
|
module Lockie
|
4
4
|
class Engine < ::Rails::Engine
|
5
|
-
include Lockie::ModelHelper
|
6
5
|
|
7
6
|
config.app_middleware.use Warden::Manager do |manager|
|
8
7
|
manager.default_strategies Lockie.config.default_strategies
|
9
8
|
manager.failure_app = Lockie::FailureApp
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
10
|
+
manager.serialize_into_session(&:id)
|
11
|
+
manager.serialize_from_session do |id|
|
12
|
+
Lockie.config.model_name.classify.constantize.find(id)
|
13
|
+
end
|
15
14
|
|
16
15
|
end
|
17
16
|
end
|
data/lib/lockie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Melvin Sembrano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|