Hi, I just updated to edge since I was having a few issues with beta4. Most of my issues have gone away, but an after_save observer that was working fine on beta4 simply isn''t being called. class MyObserver < ActiveRecord::Observer observe :post def after_save(post) post.flush_cache end end —P -- Paul Campbell paul@hypertiny.ie - - - - - - - - - - - - - - - - - - - web http://hypertiny.ie blog http://www.pabcas.com twitter http://www.twitter.com/paulca github http://www.github.com/paulca phone +353 87 914 8162 - - - - - - - - - - - - - - - - - - - -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Thu, Jul 8, 2010 at 16:55, Paul Campbell <paul@rslw.com> wrote:> > Most of my issues have gone away, but an after_save observer that was > working fine on beta4 simply isn''t being called.I refactored observers a while ago (April), and was the last to work on them (to my knowledge). Their tests still pass, and fail if I comment out actions in observer classes. So, everything seems in order. Maybe the issue is that they don''t get loaded properly in your app? -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
On Thu, Jul 8, 2010 at 7:50 PM, Mislav Marohnić <mislav.marohnic@gmail.com> wrote:> On Thu, Jul 8, 2010 at 16:55, Paul Campbell <paul@rslw.com> wrote: >> >> Most of my issues have gone away, but an after_save observer that was >> working fine on beta4 simply isn''t being called. > > I refactored observers a while ago (April), and was the last to work on them > (to my knowledge). Their tests still pass, and fail if I comment out actions > in observer classes. So, everything seems in order. > Maybe the issue is that they don''t get loaded properly in your app?Maybe. Has the syntax changed at all between beta4 and master? My app tests pass in beta4. --P> > -- > 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- Paul Campbell paul@hypertiny.ie - - - - - - - - - - - - - - - - - - - web http://hypertiny.ie blog http://www.pabcas.com twitter http://www.twitter.com/paulca github http://www.github.com/paulca phone +353 87 914 8162 - - - - - - - - - - - - - - - - - - - -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Hey Paul, I replied to a newer thread on the subject. Please do debugging steps as indicated there. On Thu, Jul 8, 2010 at 21:30, Paul Campbell <paul@rslw.com> wrote:> On Thu, Jul 8, 2010 at 7:50 PM, Mislav Marohnić > <mislav.marohnic@gmail.com> wrote: > > On Thu, Jul 8, 2010 at 16:55, Paul Campbell <paul@rslw.com> wrote: > >> > >> Most of my issues have gone away, but an after_save observer that was > >> working fine on beta4 simply isn''t being called. > > > > I refactored observers a while ago (April), and was the last to work on > them > > (to my knowledge). Their tests still pass, and fail if I comment out > actions > > in observer classes. So, everything seems in order. > > Maybe the issue is that they don''t get loaded properly in your app? > > Maybe. Has the syntax changed at all between beta4 and master? My app > tests pass in beta4. > > --P > > > > > -- > > 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 rubyonrails-core@googlegroups.com. > > To unsubscribe from this group, send email to > > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > > For more options, visit this group at > > http://groups.google.com/group/rubyonrails-core?hl=en. > > > > > > -- > > Paul Campbell > paul@hypertiny.ie > - - - - - - - - - - - - - - - - - - - > web http://hypertiny.ie > blog http://www.pabcas.com > twitter http://www.twitter.com/paulca > github http://www.github.com/paulca > phone +353 87 914 8162 > - - - - - - - - - - - - - - - - - - - > > -- > 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Hi Mislav, Whatever changed in the last few days fixed the issue for me. I gave up on edge, went back to beta4, then a few days later came back to edge and all my tests are passing now. —P On Fri, Jul 16, 2010 at 11:59 AM, Mislav Marohnić <mislav.marohnic@gmail.com> wrote:> Hey Paul, I replied to a newer thread on the subject. Please do debugging > steps as indicated there. > > On Thu, Jul 8, 2010 at 21:30, Paul Campbell <paul@rslw.com> wrote: >> >> On Thu, Jul 8, 2010 at 7:50 PM, Mislav Marohnić >> <mislav.marohnic@gmail.com> wrote: >> > On Thu, Jul 8, 2010 at 16:55, Paul Campbell <paul@rslw.com> wrote: >> >> >> >> Most of my issues have gone away, but an after_save observer that was >> >> working fine on beta4 simply isn''t being called. >> > >> > I refactored observers a while ago (April), and was the last to work on >> > them >> > (to my knowledge). Their tests still pass, and fail if I comment out >> > actions >> > in observer classes. So, everything seems in order. >> > Maybe the issue is that they don''t get loaded properly in your app? >> >> Maybe. Has the syntax changed at all between beta4 and master? My app >> tests pass in beta4. >> >> --P >> >> > >> > -- >> > 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 rubyonrails-core@googlegroups.com. >> > To unsubscribe from this group, send email to >> > rubyonrails-core+unsubscribe@googlegroups.com. >> > For more options, visit this group at >> > http://groups.google.com/group/rubyonrails-core?hl=en. >> > >> >> >> >> -- >> >> Paul Campbell >> paul@hypertiny.ie >> - - - - - - - - - - - - - - - - - - - >> web http://hypertiny.ie >> blog http://www.pabcas.com >> twitter http://www.twitter.com/paulca >> github http://www.github.com/paulca >> phone +353 87 914 8162 >> - - - - - - - - - - - - - - - - - - - >> >> -- >> 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 rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com. >> 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 rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- Paul Campbell paul@hypertiny.ie - - - - - - - - - - - - - - - - - - - web http://hypertiny.ie blog http://www.pabcas.com twitter http://www.twitter.com/paulca github http://www.github.com/paulca phone +353 87 914 8162 - - - - - - - - - - - - - - - - - - - -- 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 rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.