I am also experiencing these problems, any news on this?

Thanks.

On 1 Jul, 22:01, Anders Jacobsen <anders...@gmail.com> wrote:
> I am experiencing the same problems as Brent: when a plugin extends an
> application model, things work as expected in production mode while
> development mode is buggy.
> I tried both of Paul's suggestions, but still no success ...
>
> -Anders
>
> On 7 Maj, 13:06, Pau Cor <rails-mailing-l...@andreas-s.net> wrote:
>
> > Brent Dillingham wrote:
> > > Can anyone tell me the "proper" way to extend a model provided by an
> > > app engine (or any plugin for that matter).
>
> > I *think* that you can do it in one of these two ways:
>
> > First, you could put something like this in your plugin’s init.rb file:
> > # This plugin should be reloaded in development mode.
> > if RAILS_ENV == ‘development’
> > ActiveSupport::Dependencies.load_once_paths.reject!{|x| x =~
> > /^#{Regexp.escape(File.dirname(__FILE__))}/}
> > end
>
> > Second, you could put something like this in your application’s
> > environment.rb file:
> > config.reload_plugins = true if RAILS_ENV == ‘development’
> > --
> > Posted viahttp://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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