I have a path that my model (Audio) uses to r/w files. This path
differs between production, test, and dev.

Audio includes a module that overrides some ActiveRecord methods.
This module is contained in  config/initializers.

I'd like to set the Audio directory based on my environment, but using
the given environment files fail because the module included by Audio
hasn't been loaded. Of course I could just require it, but this made
me think that maybe the initilaizers directory isn't the right place
to put my AR overrides, and the environment file isn't the right place
to put my non-Rails related environment settings. Is this the case?

It seems as though I should set the directory in it's own initializer
based on RAILS_ENV... but Rails is already doing this for me with the
given environment files


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to