Hey,

I'm a rails noob.

Concern: I have 13 initializer files and growing with api tokens,
special cases and all sorts of odds and ends.

Custom solution: Per environment directories under config/initializers
seem simple and awesome. One of these would load after all files in
config/initializers (and stopping there).

Not considered a priori: Case statements are yucky.

Implementation: Load a custom rails engine per environment which DOES
NOT glob into subdirs of config/initializers recursively.

Specific blocking issue: The best way to replace an initializer that's
already declared and in the chain to be executed with one of similar
functionality and same semantics.  I've seen some other code that
filters out a specific initializer.

If you are curious or just devious, feel free to pick apart a started
implementation and notes here:

http://stackoverflow.com/questions/8001930/rails-3-config-initializers-separate-directory-per-environment/8003345#comment9796894_8003345

Thanks for reading.

Barry Allard

-- 
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 [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-talk?hl=en.

Reply via email to