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.

Daniel Luz's latest activity

Wednesday, December 03 2008
1510 [PATCH] rdoc mentions inexistent "collection.exist?" method (should be "exist... was created in Ruby on Rails
  • Daniel Luz
    Daniel Luz created the ticket at 7:38 AM

    Many areas of the docs for associations talk about a collection.exist? method, but it's actually called exists?, as a parallel for ActiveRecord::Base.exists?.

    H...

Monday, December 01 2008
1499 [PATCH] find_last (find(:last)) affects other calls on the same scope was updated in Ruby on Rails
  • Daniel Luz
    Daniel Luz commented at 8:05 AM

    Testcase and fix in a single patch.

    They were separated because at first I didn't have a solution, so I just came here to leave a report and a test case. After ...

  • Daniel Luz
    • Title changed from find_last (find(:last)) affects other calls on the same scope to [PATCH] find_last (find(:last)) affects other calls on the same scope
    by Daniel Luz at 5:59 AM
  • Daniel Luz
    • Tag changed from 2.1-stable, 2.2-stable, :order, activerecord, bug, find_last, named_scope, scope, with_scope to 2.1-stable, 2.2-stable, :order, activerecord, bug, find_last, named_scope, patch, scope, with_scope
    by Daniel Luz at 4:36 AM

    Patch altering the way #find_last works with scoped_methods.

    Rather than updating all elements on the stack, update just the current scope, and restore its stat...

  • Daniel Luz
    Daniel Luz created the ticket at 1:26 AM

    Using find(:last) within a scope leaves side effects on it, affecting all future calls within the same scope.

    Pseudocode example:

    
    Book.with_scope(:find => {:...
1381 default_scope patch was updated in Ruby on Rails
  • Daniel Luz
    Daniel Luz commented at 5:00 AM

    The documentation is slightly out of date. This is a quick fix.

Monday, September 08 2008
997 db:schema:dump saves enum columns as varchar(0) on MySQL was created in Ruby on Rails
  • Daniel Luz
    Daniel Luz created the ticket at 9:16 PM

    I have a gender enum('M', 'F') column on a MySQL table (MyISAM engine). When I invoke rake db:schema:dump, Rails writes this column as:

    t.string "gender", :lim...