Not sure what happened but all of a sudden reload! stopped loading updated model classes in irb. Anyone seen this? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
This is only happening for one model only! Here is the model. If I exit the console then start it again the model updates load just fine. On Sep 5, 9:38 pm, badnaam <asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Not sure what happened but all of a sudden reload! stopped loading > updated model classes in irb. Anyone seen this?-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Nevermind turns out my model classname was same as the class name of a plugin. Wonder why reload! always returned true, never complained or gave a clue On Sep 5, 11:15 pm, badnaam <asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> This is only happening for one model only! > > Here is the model. > > If I exit the console then start it again the model updates load just > fine. > > On Sep 5, 9:38 pm, badnaam <asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Not sure what happened but all of a sudden reload! stopped loading > > updated model classes in irb. Anyone seen this? > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 6, 7:28 am, badnaam <asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Nevermind turns out my model classname was same as the class name of a > plugin. Wonder why reload! always returned true, never complained or > gave a clue >At the point that the plugin was loaded, that class was probably marked as non reloadable, as plugins usually aren''t. Sounds like the class declaration in your app then just added to that non reloadable class rather than creating a new one. Fred> On Sep 5, 11:15 pm, badnaam <asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > This is only happening for one model only! > > > Here is the model. > > > If I exit the console then start it again the model updates load just > > fine. > > > On Sep 5, 9:38 pm, badnaam <asitkmis...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Not sure what happened but all of a sudden reload! stopped loading > > > updated model classes in irb. Anyone seen this?-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.