Rails.application, I think
On 04/02/2011, at 13:36, Ivan el Magnifico <[email protected]> wrote: > Reading through the source in railties/lib/rails/paths.rb, I found > this: > > module MyEngine > class Engine < Rails::Engine > config.after_initialize do > ::AppName::Application.config.paths.vendor.plugins.push > File.expand_path('../../vendor/plugins', __FILE__) > end > end > end > > Is that correct? If it is, then it begs the question, how do I access > the app configuration without directly referencing it's name > (::AppName)? > > On Feb 4, 9:13 am, Ivan el Magnifico <[email protected]> > wrote: >> In Rails 3, is it possible to have a plugin inside an engine? >> >> Adding the lib dir of the plugin to autoload_paths doesn't seem to >> work. >> >> I can manage to load it by adding that path to $: and requiring the >> init.rb file, but I'm not sure that's the correct approach. >> >> Thanks! > > -- > 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. > -- 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.
