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.

David Trasbo's latest activity

Wednesday, April 14 2010
3544 AS dependency load order bug was updated in Ruby on Rails
  • David Trasbo
    • Assigned user set to Ryan Bigg
    by David Trasbo at 9:08 PM

    This issue can be duplicated with Rails 2.3.5:

    ➜  code  rails -v
    Rails 2.3.5
    ➜  code  irb
    ruby-1.8.7-p249 > require 'rubygems'
     => true 
    ruby-1.8.7-p249 > requ...
1791 AR validates_uniqueness_of floats and find_by_FLOAT_FIELD was updated in Ruby on Rails
  • David Trasbo
    • Assigned user changed from Mikel Lindsaar to Ryan Bigg
    by David Trasbo at 8:56 PM

    Like Ryan, I was unable to duplicate this issue with Rails 2.3.5:

    ➜  code  rails -v
    Rails 2.3.5
    ➜  code  rails validates_uniqueness_of_float
    ...
    ➜  code  cd va...
2483 AR callback not invoked on has_one child when saved through parent was updated in Ruby on Rails
  • David Trasbo
    • Assigned user set to Ryan Bigg
    by David Trasbo at 8:49 PM

    This can be marked as a duplicate.

3455 AR belongs_to :include option doesn't do anything was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 8:43 PM

    Here's the Foo model, by the way. Bar has no code in it.

    class Foo < ActiveRecord::Base
      belongs_to :bar
      named_scope :baz, :include => :bar
    end
    
  • David Trasbo
    David Trasbo commented at 8:42 PM

    I was able to duplicate this with version 2.3.5 of Rails:

    ➜  code  rails -v                        
    Rails 2.3.5
    ➜  code  rails named_scope_include_option
    ...
    ➜...
3933 Application will die with syntax error when trying to define hyphenated resou... was updated in Ruby on Rails
  • David Trasbo
    • Assigned user set to Ryan Bigg
    by David Trasbo at 8:19 PM

    As suggested above this is definitely not a bug. There is no sense in defining a method with a hyphen in its name as the only way to call it is by using send, w...

2292 after_destroy callback is not triggered in call to collection_singular_id was updated in Ruby on Rails
  • David Trasbo
    • Assigned user changed from DHH to Ryan Bigg
    by David Trasbo at 8:14 PM

    Yi,

    If this issue is still relevant I think you should try Danny's suggestion.

    Unless it turns out his suggestion doesn't fix the problem I think this ticket sh...

2463 Add first and last to OrderedHash was updated in Ruby on Rails
  • David Trasbo
    • Assigned user set to Ryan Bigg
    by David Trasbo at 7:40 PM

    Regular hashes are ordered in Ruby 1.9, so I think this ticket should be marked as "won't fix" - in my opinion it serves no purpose to keep maintaining a piece ...

2523 Add 'field' attribute to ActiveRecord::Errors#to_xml was updated in Ruby on Rails
  • David Trasbo
    David Trasbo commented at 6:11 PM

    Oops. Looks like I forgot to attach the patch. Here you go:

  • David Trasbo
    David Trasbo commented at 6:10 PM

    +1

    This would definitely be a useful change. Unfortunately the patch no longer applies because the Errors class has been moved to ActiveModel.

    I've made a new p...