interesting, thanks Nathan, will give it a try.
On Mon, Mar 15, 2010 at 10:34 AM, Nathan de Vries wrote:
> On 14/03/2010, at 5:16 PM, Robbie Shepherd wrote:
> > What I'd like to do is be able to specify or over-ride the has_attachment
> options on a per model basis, so that I can change the p
On 14/03/2010, at 5:16 PM, Robbie Shepherd wrote:
> What I'd like to do is be able to specify or over-ride the has_attachment
> options on a per model basis, so that I can change the path_prefix and the
> thumbnails hash.
Your Image class stores the options passed to has_attachment in a class
i
On Sun, Mar 14, 2010 at 5:59 PM, Robbie Shepherd
wrote:
> thanks, but path_prefix is just a variable passed to AttachmentFu I think.
> It's definitely not part of any of my models.
You'll need to google that, I haven't used attachmentfu in years.
> For some reason I don't seem to be able to acce
thanks, but path_prefix is just a variable passed to AttachmentFu I think.
It's definitely not part of any of my models.
For some reason I don't seem to be able to access the asset instance -though
I may just be doing it wrong!
On Sun, Mar 14, 2010 at 5:30 PM, Mikel Lindsaar wrote:
> On Sun,
On Sun, Mar 14, 2010 at 5:16 PM, Robbie Shepherd
wrote:
> What I'd like to do is be able to specify or over-ride the has_attachment
> options on a per model basis, so that I can change the path_prefix and the
> thumbnails hash. I guess I need to get the parent class name in the image
> model when
I have the following 3 models below. Event and Performer each has_many
:images :as => :asset. The Image model has an :asset_id and :asset_type
column to allow multiple models to have images.
What I'd like to do is be able to specify or over-ride the has_attachment
options on a per model basis, so