app/models/unidom/visitor/identificating.rb in unidom-visitor-0.1 vs app/models/unidom/visitor/identificating.rb in unidom-visitor-0.1.1
- old
+ new
@@ -8,10 +8,10 @@
belongs_to :visitor, polymorphic: true
scope :identity_is, ->(identity) { where identity: identity }
scope :visitor_is, ->(visitor) { where visitor: visitor }
- include ::Unidom::Common::Concerns::ModelExtension
+ include Unidom::Common::Concerns::ModelExtension
def self.find_identity(visitor)
visitor_is(visitor).first.try :identity
end