Class: WinewooCore::Repositories::Mongo::Queries::AdminQuery
- Inherits:
-
UserQuery
- Object
- WinewooQuery
- UserQuery
- WinewooCore::Repositories::Mongo::Queries::AdminQuery
- Defined in:
- lib/winewoo_core/repositories/mongo/queries/admin_query.rb
Instance Method Summary collapse
-
#initialize ⇒ AdminQuery
constructor
A new instance of AdminQuery.
Methods inherited from UserQuery
Methods inherited from WinewooQuery
#method_missing, #respond_to?, #respond_to_missing?
Constructor Details
#initialize ⇒ AdminQuery
Returns a new instance of AdminQuery.
5 6 7 |
# File 'lib/winewoo_core/repositories/mongo/queries/admin_query.rb', line 5 def initialize super User.where(user_roles: :admin) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class WinewooCore::Repositories::Mongo::Queries::WinewooQuery