> Should asset_host be declared as class_inherited_accessor (rather than
> cattr_accessor) -- or am I being too picky about wanting it to be
> correct when both controllers are loaded?

It wouldn't be *quite* that easy as we cache the calls to
path_to_image etc.  So while you changed the value, you may not see
that reflected in the generated markup.  So the simple solution won't
work.

A more full-featured solution would be to also move that cache into an
inheritable accessor, but that would likely use up a lot of memory.
You could also investigate making the asset caching configured
independently of the general caching setup, and then turn it off if
you wanted to override the settings.


-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to