app/models/unidom/visitor/authenticating.rb in unidom-visitor-0.1 vs app/models/unidom/visitor/authenticating.rb in unidom-visitor-0.1.1
- old
+ new
@@ -10,10 +10,10 @@
belongs_to :credential, polymorphic: true
scope :visitor_is, ->(visitor) { where visitor: visitor }
scope :credential_is, ->(credential) { where credential: credential }
- include ::Unidom::Common::Concerns::ModelExtension
+ include Unidom::Common::Concerns::ModelExtension
def self.authenticate(visitor, credential)
self.create! visitor: visitor, credential: credential, opened_at: Time.now
end