Class: WinewooCore::Repositories::Mongo::HistoryMongoRepo
- Inherits:
-
Object
- Object
- WinewooCore::Repositories::Mongo::HistoryMongoRepo
- Defined in:
- lib/winewoo_core/repositories/mongo/history_mongo_repo.rb
Instance Method Summary collapse
Instance Method Details
#find(winewoo_user, filters) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/winewoo_core/repositories/mongo/history_mongo_repo.rb', line 4 def find(winewoo_user, filters) # TODO UNOFFICIALS # winewoo_user.history_entries.map do |entry| # wine = Wine.find entry.wine_id # entry if wine && wine.official? # end.reject(&:blank?) winewoo_user.history_entries end |