lib/mongoid/userstamp/user.rb in mongoid_userstamp-0.2.1 vs lib/mongoid/userstamp/user.rb in mongoid_userstamp-0.3.0

- old
+ new

@@ -4,10 +4,10 @@ module User extend ActiveSupport::Concern included do def current? - !Thread.current[:user].nil? && self.id == Thread.current[:user].id + !Thread.current[:user].nil? && self._id == Thread.current[:user]._id end end module ClassMethods def current