-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no object in Resource #10
Comments
@zoran I think this is probably best left to the lower-level DSL, which you can customize with a block. We wouldn't be dealing with class UserResource
type :users
has_many :addresses, options do
scope do |users|
Address.where(["zip LIKE ?", users.map(&:zip))
end
end
end Does that work for you? Note this will override any |
mhh, I get
|
Yeah, I should definitely make it so you can pass EITHER After that I'd say the abstraction still looks correct to me. Would just making |
Yes that would be great |
@zoran this is in master, I will release a new version tonight |
Fixed in 0.5.5 |
in a more complex scenario I want to access attributes of the @object in a Resource (just like in a Serializer). Is that possible somehow?
The text was updated successfully, but these errors were encountered: