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.

Aditya Sanghi's latest activity

Thursday, October 21 2010
5605 Using Model.includes(:relation_with_custom_primary_key) was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from new to open
    • Milestone set to 3.0.2
    • Assigned user set to Aaron Patterson
    • Tag changed from patch to active_record, patch
    by Aditya Sanghi at 11:15 AM

    Test applies fine on master.

    Not so sure about the multi-line primary_key assignment.

      primary_key = (clause1 || clause2).to_s
    

    instead of

      primary_key = cl...
5845 ActiveRecord 3 eager loading fail was updated in Ruby on Rails
  • Aditya Sanghi
    • Milestone set to 3.0.2
    • Assigned user set to Aaron Patterson
    • Importance changed from to Low
    by Aditya Sanghi at 10:40 AM
Wednesday, October 20 2010
5848 “undefined method” when calling helper method in ApplicationHelper module fro... was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from new to invalid
    • Importance changed from to Low
    by Aditya Sanghi at 8:49 PM

    Yes, helpers are meant to be used in Views not Controllers. If you want to use them in Controllers you can try to access them as @template.mymethod but i'm not ...

5843 [PATCH] ActiveSupport::OrderedHash#select does not preserve order was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from new to verified
    • Milestone set to 3.0.2
    • Assigned user set to Santiago Pastorino
    • Importance changed from to Low
    by Aditya Sanghi at 9:41 AM

    +1 verified on 3.x/1.8.7 and 2.3.x/1.8.7

    Can you please provide the patch using git format-patch as specified on the contributor's guide though?

    The patch can b...

5398 time_ago_in_words reports incorrect number of args, when correct # args used was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from new to invalid
    by Aditya Sanghi at 9:31 AM

    Marking invalid until Matt, provides input. I was also not able to reproduce the problem.

5816 date_select helper separator functionality bug was updated in Ruby on Rails
  • Aditya Sanghi
    • Milestone changed from 3.x to 3.0.2
    by Aditya Sanghi at 9:29 AM
4346 time_select not interpreting the multi-parameter correctly was updated in Ruby on Rails
  • Aditya Sanghi
    • Milestone changed from 3.x to 3.0.2
    by Aditya Sanghi at 9:27 AM

    Changing to 3.0.2 as it's a bugfix.

Tuesday, October 19 2010
5796 Rails 3.0 generator inconsistency was updated in Ruby on Rails
  • Aditya Sanghi
    • Tag set to appgenerator, patch, railties
    by Aditya Sanghi at 1:00 PM

    Adding patch to add config.generators.orm = false when skip active_record is given as per José's suggestion above.

  • Aditya Sanghi
    • State changed from incomplete to verified
    • Milestone set to 3.x
    • Assigned user set to José Valim
    by Aditya Sanghi at 12:26 PM
5794 using include? on a time range yields unhappy results was updated in Ruby on Rails
  • Aditya Sanghi
    • State changed from incomplete to invalid
    • Tag changed from rails3.0.0, range, time to 1.9.2, rails3.0.0, range, time
    by Aditya Sanghi at 11:13 AM

    Thanks Szymon! Didnt know about the 1.9 changes.

    So the short of it is use cover? in 1.9 instead of include? and you should be good to go.

    Apart from your own c...