test/rails_app/app/mongoid/shim.rb in devise-3.2.3 vs test/rails_app/app/mongoid/shim.rb in devise-3.2.4

- old
+ new

@@ -1,19 +1,19 @@ module Shim extend ::ActiveSupport::Concern included do include ::Mongoid::Timestamps - field :created_at, :type => DateTime + field :created_at, type: DateTime end module ClassMethods def order(attribute) asc(attribute) end def find_by_email(email) - find_by(:email => email) + find_by(email: email) end end # overwrite equality (because some devise tests use this for asserting model equality) def ==(other)