Thanks guys. Actually, I was originally trying to make licensed_to a scope
but in order to chain it in the BookController, I'd need to pass in the
current_user and I'm not sure that it is possible to pass a variable to a
scope. If I try to use Hobo's acting_user variable inside any model but
outside of the 4 permissions methods, it complains that acting_user is not
defined. At this point though, scopes seem to be my best bet without
explicitly defining the member_class, which I'm not sure I want to do. If
you have any ideas about how to make scopes work in this case, please let me
know.

Also, one of the reasons I'm dealing with this is because of the pagination
problem. Again, scopes do seem to be the answer, just not sure of the
implementation. Thanks!


On Tue, Oct 25, 2011 at 8:56 AM, kevinpfromnm <[email protected]>wrote:

> You might get around this by making your licensed_to a scope instead so you
> can pass it straight to the hobo_index.  Also solves the pagination problem.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/sbdWfVh_9HcJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to