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.

Andreas Korth's latest activity

Wednesday, March 09 2011
5412 [Patch] Rails schema_format :sql should behave like schema_format :ruby was updated in Ruby on Rails
Monday, March 29 2010
4064 validates_uniqueness_of should honor default_scope (or not) was updated in Ruby on Rails
  • Andreas Korth
    Andreas Korth commented at 5:49 PM

    Totally unrelated, but +1 for making with_exlusive_scope public by default :)

  • Andreas Korth
    Andreas Korth commented at 4:48 PM

    FYI

    Task.with_exlusive_scope.all
    

    doesn't work in 2.3 - it's a protected method.

    If it's actually a good pattern to pull authorization from the controller laye...

  • Andreas Korth
    Andreas Korth commented at 1:05 PM

    Ok, sarcastic tones aside, yes, I still think that I have the stronger argument. The "public" example above would be a good candidate for a named_scope but not ...

  • Andreas Korth
    Andreas Korth commented at 1:05 AM

    "if we change it, a lot of business logic will break in several applications which relies in the current behavior."

    Oh, the Microsoft argument! Don't you think ...

Saturday, March 27 2010
4064 validates_uniqueness_of should honor default_scope (or not) was updated in Ruby on Rails
  • Andreas Korth
    • Assigned user set to José Valim
    by Andreas Korth at 3:02 PM

    @José: Don't you think your decision is arbitrary? By the same token, I could argue that the default scope should not be honored in delete operations since opti...

Friday, February 26 2010
4064 validates_uniqueness_of should honor default_scope (or not) was created in Ruby on Rails
  • Andreas Korth
    Andreas Korth created the ticket at 2:25 PM

    A model that has a default_scope with :conditions will not use this scope in uniqueness validations. I consider this the wrong behavior, but maybe I just fail t...

Monday, June 01 2009
1977 ActionController::Caching::Sweeper autoloading is broken was updated in Ruby on Rails
  • Andreas Korth
    Andreas Korth commented at 10:44 PM

    Michael,

    I'm sorry there was a misunderstanding. I thought the bug was fixed in 2.3.2. I tried 2-3-stable and it works fine.

    Thanks for working this out with me...

  • Andreas Korth
    Andreas Korth commented at 10:29 PM

    Michael,

    I'm still having this issue in Rails 2.3.2. It might be worth noting that the sweeper class is inside a plugin. Some of the reports indicate that the b...

  • Andreas Korth
    Andreas Korth commented at 6:23 PM

    I can confirm that the patch does not fix the bug on 2.3.2 and no workaround mentioned in this discussion works for me.

    Can someone please reopen this ticket. T...