lib/rack/oauth2/models/access_grant.rb in rack-oauth2-server-2.4.1 vs lib/rack/oauth2/models/access_grant.rb in rack-oauth2-server-2.4.2
- old
+ new
@@ -23,10 +23,11 @@
collection.insert fields
Server.new_instance self, fields
end
def collection
- Server.database["oauth2.access_grants"]
+ prefix = Server.options[:collection_prefix]
+ Server.database["#{prefix}.access_grants"]
end
end
# Authorization code. We are nothing without it.
attr_reader :_id