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.

Jeremy Kemper's latest activity

Thursday, July 01 2010
2952 to_xml format with sti was updated in Ruby on Rails
  • Jeremy Kemper
    • State changed from open to resolved
    by Jeremy Kemper at 5:21 AM

    Great!

Wednesday, June 30 2010
3087 ActiveSupport::JSON.encode is Inconsistent for #as_json and #to_json was updated in Ruby on Rails
  • Jeremy Kemper
    Jeremy Kemper commented at 6:44 PM

    Users always call foo.to_json or ActiveSupport::JSON.encode(foo)

    The implementor of Foo writes an as_json

  • Jeremy Kemper
    • State changed from open to duplicate
    by Jeremy Kemper at 6:19 AM

    Reviewing the examples above, this was fixed. Please verify on latest master!

  • Jeremy Kemper
    • Milestone set to 2.3.9
    • State changed from invalid to open
    by Jeremy Kemper at 6:17 AM

    Implementing as_json is right. Using to_json is a mess because JSON libraries use it for their internal encoding API.

    This is similar to the Marshal library: yo...

5013 Clean try syntax was updated in Ruby on Rails
  • Jeremy Kemper
    Jeremy Kemper commented at 5:15 PM

    I agree maybe_hash_maybe_nil.try(:[], key) is ugly. But the proxy approach is error-prone and less obvious.

    A third way is to use instance_eval: list.try { self...

Tuesday, June 29 2010
5006 ActiveSupport::BufferedLogger and us-ascii message on ruby 1.9.x was updated in Ruby on Rails
  • Jeremy Kemper
    • Importance changed from Low to High
    by Jeremy Kemper at 11:39 PM
  • Jeremy Kemper
    • Assigned user set to Yehuda Katz (wycats)
    • State changed from new to open
    • Milestone cleared.
    • Importance changed from to Low
    by Jeremy Kemper at 11:38 PM
5003 default_scope prevents a rake db:migrate if attributes in DB don't exist was updated in Ruby on Rails
  • Jeremy Kemper
    • Milestone cleared.
    • State changed from new to open
    • Importance changed from to Low
    by Jeremy Kemper at 5:43 PM
4994 Rails3: observer in config/application.rb brokes rake db:migrate was updated in Ruby on Rails
  • Jeremy Kemper
    Jeremy Kemper commented at 4:11 AM

    Workaround:

    def self.old() where :status => 'old' end
    

    The root fix is as Santiago suggests: building the relation should be lazy, not loading the table until ...

Monday, June 28 2010
4450 'expire_after' option on session forces session creation on each and every ac... was updated in Ruby on Rails
  • Jeremy Kemper
    • State changed from new to duplicate
    • Importance changed from to Low
    by Jeremy Kemper at 11:30 PM