forked from m3talsmith/arkenstone
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Need to enable has_many through relationships. Example
class Resource
end
class Role
has_many :resources
end
class User
has_many :roles
has_many :resources, through: :roles
end
This means that User instances have a list of Resources that are provided by their Roles list.
As of now this can be done by 'plucking' the Resources property from each Role on a User. However, this would also result in an HTTP call for each Role, which would be very slow. Consider creating an :include functionality first.
Metadata
Metadata
Assignees
Labels
No labels