Re: [Radiant] Modifying configuration in an extension

2010-09-02 Thread Josh French
On Sep 1, 2010, at 11:35 PM, Wes Gamble wrote: > extension_config do |config| > config.after_initialize do > ...custom stuff... > end > end That config object points to the underlying Rails app's configuration, so through it you'll have access to all of the options normally pr

Re: [Radiant] Modifying configuration in an extension

2010-09-01 Thread Jim Gay
On Wed, Sep 1, 2010 at 11:35 PM, Wes Gamble wrote: > When I use a block like: > >   extension_config do |config| >     config.after_initialize do >   ...custom stuff... >     end >   end > > to manipulate the Rails configuration in an xxx_extension.rb file, is the > config.after_initialize blo

[Radiant] Modifying configuration in an extension

2010-09-01 Thread Wes Gamble
When I use a block like: extension_config do |config| config.after_initialize do ...custom stuff... end end to manipulate the Rails configuration in an xxx_extension.rb file, is the config.after_initialize block important? If so, why? Thanks, Wes