bjartek / computer-database-mongo

Computer-database example from play 2.0 distribution with mongo as persistence using salat
33 stars 8 forks source link

CustomContext issues #6

Open mshirman opened 11 years ago

mshirman commented 11 years ago

In models you import this: import models.mongoContext._

Disclosure: I am very new to play2/salat. And I'm getting various exceptions, it seems something wrong with the CustomContext. I frankly would expect a package called mongoContext under models.

-- Attempting to run the application cloned from this repo: "could not find implicit value for parameter ctx: com.novus.salat.Context"

-- Attempting to run my custom application that follows the same config and build setup:

object mongoContext is not a member of package models

In ...\Search.scala at line 9. import com.novus.salat.dao. import com.mongodb.casbah.Imports. import com.novus.salat.annotations. import se.radley.plugin.salat. import models.mongoContext._

bjartek commented 11 years ago

Try to pull. Just accepted a pull request that I think will fix this issue. The custom context was there at some point and must have been left in. Proabably cached at my end so I did not notice the issue.