Sha256: a906aac44114b4ca99a6235ccfc0bc3ab515f0a1f24332c732cba8bc1817aae9
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 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 def as_json(*args) json_response = super json_response['id'] = id.to_s json_response['scopes'] = scopes.to_s json_response end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-mongodb-5.0.0 | lib/doorkeeper-mongodb/mixins/mongo_mapper/base_mixin.rb |