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.

Michael Schuerig's latest activity

Sunday, April 05 2009
2419 Raise specific exceptions for violated database constraints was created in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig created the ticket at 12:50 AM

    The attached patch adds two new exceptions, ActiveRecord::RecordNotUnique and ActiveRecord::InvalidForeignKey as subclasses of ActiveRecord::InvalidStatement.

    A...

Thursday, April 02 2009
2400 [Patch] Correct index column order for PostgreSQL was created in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig created the ticket at 2:08 PM

    The query used to determine indexes from the database in the ActiveRecord PostgreSQL adapter returns columns in arbitrary order. As a result, in schema.rb multi...

2396 [Patch] Show middleware in /rails/info/properties was created in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig created the ticket at 8:43 AM

    Here's a small patch that shows the installed middleware in the info displayed at /rails/info/properties.

Tuesday, May 20 2008
107 Level hooks for validations was updated in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig commented at 1:45 PM

    I already send a message to rails-core on 2008-05-03, even before writing the patch. Koz advised me to write a patch and so I did.

    Regarding ActiveModel: Yes,...

Wednesday, May 14 2008
107 Level hooks for validations was updated in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig commented at 5:58 PM

    I have no better idea at the moment. Put abstractly, there needs to be a way to parameterize where a failed validation add its message.

  • Michael Schuerig
    Michael Schuerig commented at 12:34 PM

    Pratik, unfortunately this can't be done in a plugin without copying almost all of the validations -- which would be subject to break with changes in Rails.

    T...

Sunday, May 11 2008
167 [Patch] Sanitize helper docs: well-formed markup not guaranteed was created in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig created the ticket at 11:15 PM

    Add note to docs for sanitize helper method that well-formed markup is not guaranteed.

Friday, May 09 2008
154 [PATCH] add authenticity_token in auto_complete was updated in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig commented at 11:26 AM

    The root problem is in scriptaculous. It uses POST requests where GET is appropriate. The former are checked against the authenticity token, the latter are not...

Monday, May 05 2008
107 Level hooks for validations was updated in Ruby on Rails
  • Michael Schuerig
    Michael Schuerig commented at 7:18 AM

    Using :error instead of :errors to designate the level was deliberate. To me :level => :error, :level => :warning, sound more natural and more in line with log...

  • Michael Schuerig
    Michael Schuerig commented at 1:01 AM

    Josh, Koz: I'm fine with

    def errors(level = nil)
      level ||= :errors
      ...
    

    Adam: I understand your DRY intention, but not how it's going to work. level is...