app/models/unidom/visitor/authenticating.rb in unidom-visitor-0.3 vs app/models/unidom/visitor/authenticating.rb in unidom-visitor-0.4

- old
+ new

@@ -15,10 +15,10 @@ scope :visitor_type_is, ->(visitor_type) { where visitor_type: visitor_type } scope :credential_type_is, ->(credential_type) { where credential_type: credential_type } include Unidom::Common::Concerns::ModelExtension - def self.authenticate(visitor, credential) - self.create! visitor: visitor, credential: credential, opened_at: Time.now + def self.authenticate(visitor, credential, opened_at: Time.now) + self.create! visitor: visitor, credential: credential, opened_at: opened_at end end