Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Staszek's latest activity

Monday, December 27 2010
4873 Fail to force_reload polymorphic associations was updated in Ruby on Rails
  • Staszek
    Staszek commented at 6:39 PM

    I have also has this problem.
    My suggestion is to change 'klass' or 'class_name' method from AssociationReflection. I think there is the problem. Changing whole...

Thursday, July 15 2010
5118 Not saved children does not have parent object in has many association was updated in Ruby on Rails
  • Staszek
    Staszek commented at 1:16 PM

    Thank you. It looks like after https://rails.lighthouseapp.com/projects/8994/tickets/3533 documentation should be updated. Rdocs for 2.3.8 does not have any inf...

  • Staszek
    • Tag changed from associations, association_collection, belongs_to, hasmany to 2.x, associations, association_collection, belongs_to, hasmany
    by Staszek at 10:59 AM
  • Staszek
    Staszek created the ticket at 10:58 AM

    We have got 2 objects in has_many relation

    class User
     has_many :movies
    end
    class Movie
     belongs_to :user
    end
    

    If you create a parent object and the children t...

Tuesday, February 16 2010
3288 Using destroy on AR association collection updates the collection in memory. was updated in Ruby on Rails
  • Staszek
    Staszek commented at 1:06 PM

    I think it is not good idea to have access to destroyed record. You have to be very careful when you using it, but if you really want to have this destroyed obj...

Monday, February 15 2010
3964 Destroy for association collection does not delete object from parent array was created in Ruby on Rails
  • Staszek
    Staszek created the ticket at 1:19 PM

    We have normal one_to_many association

      class User < ActiveRecord::Base
        has_many :movies
      end
      
      class Movie < ActiveRecord::Base
        belongs_to :user
    ...