Hi,
Maybe there is a better way to do this, but my Properties model needs
to be sorted differently based on the currently logged in Agent.
Hopefully, you can see what I'm trying to accomplish by the following
code (the currently logged in Agent will always be last in the sort
string of agents assigned to the property). My idea was to build a
separate sort index for each Agent that is associated with the
Property - then use that specific sort index in my controller when
searching. In order to do so, I need access to my Property instance
inside the searchable block. Here is the code that doesn't work:
https://gist.github.com/2764759
Any ideas on to pull something like that off?
Thanks,
Matt