app/models/unidom/visitor/concerns/as_credential.rb in unidom-visitor-1.9 vs app/models/unidom/visitor/concerns/as_credential.rb in unidom-visitor-1.10

- old
+ new

@@ -9,19 +9,17 @@ def authenticate!(it, at: Time.now, flag_code: 'RQRD') return authenticating if authenticating.present? create_authenticating! visitor: it, flag_code: flag_code, opened_at: at end -=begin def authenticate?(it, at: Time.now, flag_code: 'RQRD') return false if authenticating.blank? result = true result &&= it==authenticating.visitor if it.present? result &&= at<=authenticating.closed_at&&at>=authenticating.opened_at if at.present? result &&= flag_code==authenticating.flag_code if flag_code.present? result end -=end end module ClassMethods end