passwordless 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/passwordless/model_helpers.rb +4 -1
- data/lib/passwordless/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: d4e2130576dfde8f65088f4a21ae816a655442a838fb5be8e93d96b84e521543
|
4
|
+
data.tar.gz: 72b12a0df487f852b72b044a2392fbc817fae13efa502c6b10fe396914bf905d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39d425dfc190a2a912bbf7f6452e9f57476359cffc2e16960533ec6f113d9fcd4a1a117bd1687f898d21c8bd172990634b781d5bbb7eb4f21dfbc164683e01df
|
7
|
+
data.tar.gz: 5fcadebce0b0a4557a8d51bb0cb94d92700d4c3543d23862dcbec1001a772090bef31d29ada89fd9c0914b7075bd893b2b0c3e39d1d628ff2007cc7cec28c967
|
@@ -8,7 +8,10 @@ module Passwordless
|
|
8
8
|
# field name (e.g. `:email`)
|
9
9
|
# @param field [string] email submitted by user.
|
10
10
|
def passwordless_with(field)
|
11
|
-
has_many :passwordless_sessions,
|
11
|
+
has_many :passwordless_sessions,
|
12
|
+
class_name: 'Passwordless::Session',
|
13
|
+
as: :authenticatable
|
14
|
+
|
12
15
|
define_singleton_method(:passwordless_email_field) { field }
|
13
16
|
end
|
14
17
|
end
|
data/lib/passwordless/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passwordless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Malmberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|