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.

Tatsuya Ono's latest activity

Wednesday, July 21 2010
5168 has_one through doesn't work on new record was updated in Ruby on Rails
  • Tatsuya Ono
    Tatsuya Ono commented at 9:34 AM

    here is the test code.

  • Tatsuya Ono
    Tatsuya Ono created the ticket at 9:27 AM

    Here is example:

    class Organization < ActiveRecord::Base
      has_many :members
    end
    class Member < ActiveRecord::Base
      has_one :organization # or belongs_to
    end
    ...
Thursday, February 04 2010
3846 [PATCH][3.0] join doesn't work properly for association with :through was created in Ruby on Rails
  • Tatsuya Ono
    Tatsuya Ono created the ticket at 1:47 AM

    When you define an association like the following ...

    class Author
       has_many :author
    end
    class Post
       belongs_to :author
    end
    class Comment
       belongs_to :po...
3684 find creates wrong SQL when you set "has_one :through" association on :join o... was updated in Ruby on Rails
  • Tatsuya Ono
    • Tag changed from activerecord associations, 2.3.5, activerecord to 2.3.5, 2.3.6, activerecord, associations
    by Tatsuya Ono at 1:21 AM

    I upload a patch which does not contain unnecessary spaces.

    This patch will probably need to be forward-ported to ARel too

    I don't think that ARel itself is h...

Monday, January 11 2010
3684 find creates wrong SQL when you set "has_one :through" association on :join o... was updated in Ruby on Rails
  • Tatsuya Ono
    • Tag changed from activerecord associations, activerecord to activerecord associations, 2.3.5, activerecord
    by Tatsuya Ono at 11:54 PM
  • Tatsuya Ono
    • Title changed from invalid SQL is created when you set "has_one :through" association to :join to find creates wrong SQL when you set "has_one :through" association on :join option
    by Tatsuya Ono at 11:35 PM
  • Tatsuya Ono
    Tatsuya Ono created the ticket at 11:33 PM

    I ran into an issue on has_one :through.

    First patch(test_join_has_many_throgh.diff) adds test cases to reproduce the issue.

    When you define an association like...

Tuesday, June 16 2009
2451 has_many :through associations give different results depending on eager-load... was updated in Ruby on Rails
  • Tatsuya Ono
    Tatsuya Ono commented at 1:40 AM

    I wrote a patch for this issue against 2-3-stable.

    I also put a simple project on github which allows you to reproduce this issue easily.
    http://github.com/ono/...

Wednesday, April 08 2009
2459 ActiveSupport::Dependencies::load_missing_constant() fails to load was created in Ruby on Rails
  • Tatsuya Ono
    Tatsuya Ono created the ticket at 7:54 PM

    Class autoload would be failed if the class to be loaded was located in the directory whose name is same as the class to load.

    Example

    in app/models/sample.rb:

    ...