Sha256: fc4bb7a76834ad837c13d13dd81e2ed16b0c5ecbe1b0e0ed4a6c3192940e9edf
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
module DoorkeeperMongodb module Mixins module MongoMapper module BaseMixin extend ActiveSupport::Concern module ClassMethods def ordered_by(attribute, direction = :asc) sort(attribute.to_sym.send(direction.to_sym)) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-4.2.0 | lib/doorkeeper-mongodb/mixins/mongo_mapper/base_mixin.rb |
doorkeeper-mongodb-4.1.0 | lib/doorkeeper-mongodb/mixins/mongo_mapper/base_mixin.rb |