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.

Subba's latest activity

Wednesday, August 04 2010
5297 removing unnecessary code in LengthValidator was created in Ruby on Rails
  • Subba
    Subba created the ticket at 4:13 PM

    this patch refactors LengthValidator code in activemodel

    valid_value = if key == :maximum
     value.nil? || value.size.send(validity_check, check_value)
    else
     val...
Tuesday, August 03 2010
5289 no callbacks should be created for empty only option was created in Ruby on Rails
  • Subba
    Subba created the ticket at 10:12 PM

    Callback module creates all callbacks if empty array is provided for only option.
    example.

    define_model_callbacks :empty, :only => []
    

    creates all three after,...

5288 removing unnecessary code in Errors of active model was created in Ruby on Rails
  • Subba
    Subba created the ticket at 5:47 PM

    this is small patch fixes Errors class in active_model

    def [](attribute)
     if errors = get(attribute.to_sym)
       errors
      else
       set(attribute.to_sym, [])
      end...
Tuesday, July 27 2010
5206 nested attributes test should rely on associations to verify the results on c... was updated in Ruby on Rails
  • Subba
    Subba commented at 12:37 PM

    okay i am attaching patch again.

  • Subba
    • Assigned user set to José Valim
    by Subba at 4:22 AM
  • Subba
    Subba commented at 4:21 AM

    attaching patch.

  • Subba
    Subba created the ticket at 4:17 AM

    currently nested attributes tests relying on assert_difference, assert_no_difference to verify results.

    
     assert_difference('Ship.count', 1) do
       @pirate.relo...
Friday, July 23 2010
5053 child/grandchild associations reload from db after nested attributes assignment was updated in Ruby on Rails
  • Subba
    Subba commented at 2:56 AM

    i am attaching 2-3-stable patch. neeraj can you verify it.

Thursday, July 22 2010
5168 has_one through doesn't work on new record was updated in Ruby on Rails
  • Subba
    Subba commented at 7:28 PM

    using inverse_of will fix your problem.

Wednesday, July 21 2010
5169 Rails3: Nested attributes broke update_attributes was updated in Ruby on Rails
  • Subba
    • Assigned user set to Santiago Pastorino
    by Subba at 6:58 PM

    we can mark this invalid as the problem is related to-csv plugin.