Sha256: c98a37ef997069e8aed2844ced3539e309cabacedb390031e611cdf636e08323
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true module Shim extend ::ActiveSupport::Concern included do include ::Mongoid::Timestamps field :created_at, type: DateTime end module ClassMethods def order(attribute) asc(attribute) end def find_by_email(email) find_by(email: email) end end # overwrite equality (because some devise tests use this for asserting model equality) def ==(other) other.is_a?(self.class) && _id == other._id end end
Version data entries
5 entries across 5 versions & 1 rubygems