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.

Jakub Suder's latest activity

Tuesday, August 24 2010
5231 print stack traces with deprecation warnings was updated in Ruby on Rails
  • Jakub Suder
    Jakub Suder commented at 9:36 PM

    Hmm... it looks like I could just replace:

    rails_gem_root = File.expand_path("../../../../..", __FILE__) + "/"
    first_external = callstack.find { |line| !line.s...
Monday, August 23 2010
5430 defining subdomain constraints in router with various TLD lengths was created in Ruby on Rails
  • Jakub Suder
    Jakub Suder created the ticket at 11:33 AM

    In the new router, it's possible to define a constraint on the subdomain field, like this:

    constraints(:subdomain => 'api') do ... end
    

    However, the subdomain ...

5231 print stack traces with deprecation warnings was updated in Ruby on Rails
  • Jakub Suder
    Jakub Suder commented at 11:10 AM

    Is there any chance someone can apply this patch before 3.0 final? I guess it's going to be most useful once 3.0 is released, because there's going to be lots o...

Friday, August 20 2010
5231 print stack traces with deprecation warnings was updated in Ruby on Rails
  • Jakub Suder
    Jakub Suder commented at 7:25 PM

    I'm uploading a patch that fixes this issue. Instead of adding an option to show full stack traces, I've changed the code to always show the first line in the s...

Friday, August 13 2010
5374 as_json should return a hash for ActiveModel/ActiveRecord objects was updated in Ruby on Rails
Monday, August 09 2010
5230 incorrect deprecation notice in ActiveModel::Errors was updated in Ruby on Rails
  • Jakub Suder
    • Title changed from ActiveModel::Errors causes a deprecation notice on itself to incorrect deprecation notice in ActiveModel::Errors
    by Jakub Suder at 11:26 PM

    Oops, my bad, that was actually an issue with Mongoid, not ActiveModel.

    The deprecation message is confusing though, it looks like it was copy-pasted from anoth...

Tuesday, August 03 2010
5283 wrong message used in validates_length_of was updated in Ruby on Rails
  • Jakub Suder
    Jakub Suder commented at 6:48 PM

    Wow, that was fast. Thanks José & Rohit :)

  • Jakub Suder
    Jakub Suder created the ticket at 10:51 AM

    If both :too_short and :too_long messages are defined for validates_length_of, it uses the :too_short message even when the value is too long.

    With such model:

    ...
Monday, August 02 2010
5274 better error messages when incorrect regexp is passed to constraints in routes was created in Ruby on Rails
  • Jakub Suder
    Jakub Suder created the ticket at 5:06 PM

    The :constraints parameter in routes expects a regexp without the start/end markers (which is the opposite to e.g. the regexps passed to validation methods in A...