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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3f68c68921abef822c2b7e2290434b9bca44de33ce2aa6f45b5e5637048a2f2
4
- data.tar.gz: 73e085275f113a6cccd604db15fd3abdf1f9483ce7c1013902f0110066b7cb0a
3
+ metadata.gz: d4e2130576dfde8f65088f4a21ae816a655442a838fb5be8e93d96b84e521543
4
+ data.tar.gz: 72b12a0df487f852b72b044a2392fbc817fae13efa502c6b10fe396914bf905d
5
5
  SHA512:
6
- metadata.gz: 413841eb920b738bd49edf2a250802f03631e06046a00b9c268aea661c06d3a0e98341cc082e33b244464e56acfa1f5c30ef75633bf8c0fbf8bbad035f0833b6
7
- data.tar.gz: c2b60996d594db47ac76c4ec0694eb970ee4d02ddf32fa37bd28702b4d44cf6e48169f989f0a1fe3ae0f1ceffdb49c2556ee887fe9901c73de74e5096c4b1b22
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, class_name: 'Passwordless::Session'
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Passwordless
4
- VERSION = '0.5.2' # :nodoc:
4
+ VERSION = '0.5.3' # :nodoc:
5
5
  end
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.2
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-04-24 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails