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.

dira's latest activity

Monday, August 10 2009
2990 None standard ID column on has_many :through was updated in Ruby on Rails
  • dira
    • Tag changed from bugmash, hasmany, primarykey to bugmash, hasmany, patch, primarykey
    by dira at 9:26 AM

    Here is the correct patch - with tests and implementation.

    Thank you all for the feedback.

Sunday, August 09 2009
2990 None standard ID column on has_many :through was updated in Ruby on Rails
  • dira
    dira commented at 10:49 PM

    @José: Thanks for the feedback; I started on a new patch with the existing models. Also I realized that the original patch was broken (foreign_key & primary_key...

  • dira
    • Tag changed from bugmash, hasmany, primarykey to bugmash, hasmany, patch, primarykey
    by dira at 5:30 PM
  • dira
    dira commented at 5:29 PM

    Attached a new patch with tests & implementation. Please ignore the previous patch.

    I'm not sure whether the fix is in the right place or it should be a dedicat...

  • dira
    dira commented at 4:45 PM

    verified on stable

    added tests

2269 Enumerable#sum not called on some association collections was updated in Ruby on Rails
  • dira
    dira commented at 3:10 PM

    I agree - this is design, not a bug. -1 for BugMash.

    The requested syntactic sugar for has_many has two facets:
    - it would cause 'huge loads' from the database ...

2329 Default to :all if :select contains comma when counting was updated in Ruby on Rails
  • dira
    dira commented at 2:27 PM

    +1 - I used paging for queries with calculated columns in a project.

  • dira
    dira commented at 11:41 AM

    +1

2896 collection_singular_ids breaks when used with :include was updated in Ruby on Rails
  • dira
    dira commented at 12:51 PM

    verified

    Updated just the tests from the patch to apply cleanly.

    I think there should be a cleaner implementation - so I did not include the original one in the...

2361 Through Associations with Conditions Fails was updated in Ruby on Rails
  • dira
    dira commented at 11:38 AM

    not reproducible

    What I understand is:
    - Employee has field department_code_for_instance - EarningCategory has field department_code

    • my_employee.earnings is in...