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.

laserlemon's latest activity

Tuesday, October 12 2010
5724 Subclasses of HashWithIndifferentAccess dup the wrong class was updated in Ruby on Rails
  • laserlemon
    laserlemon commented at 2:25 AM

    Thanks again for the advice. Here's a new, single-commit diff with a message resolving the ticket.

Monday, October 11 2010
5724 Subclasses of HashWithIndifferentAccess dup the wrong class was updated in Ruby on Rails
  • laserlemon
    laserlemon commented at 12:14 PM

    I should also mention that class.new isn't valid Ruby, so I stuck with self.class.new.

  • laserlemon
    laserlemon commented at 12:10 PM

    Here's a new patch including tests. I also discovered that HashWithIndifferentAccess duplication doesn't preserve a default value so I resolved that issue as we...

Wednesday, September 29 2010
5724 Subclasses of HashWithIndifferentAccess dup the wrong class was updated in Ruby on Rails
  • laserlemon
    • Tag changed from duplicate, hashwithindifferentaccess to hashwithindifferentaccess
    by laserlemon at 5:20 PM
5731 AR::Relation#cache_key was updated in Ruby on Rails
  • laserlemon
    laserlemon commented at 5:16 PM

    It seems like custom cache keys and custom expiration are better suited for these types of situations. A relation's cache key doesn't communicate anything about...

Friday, November 20 2009
2491 habtm assosiation, collection_singular_ids=ids method does not work if ids ar... was updated in Ruby on Rails
  • laserlemon
    laserlemon commented at 9:55 PM

    Scratch that. Looks like it's already fixed up in edge!

    define_method("#{reflection.name.to_s.singularize}_ids=") do |new_value|
      ids = (new_value || []).reje...
  • laserlemon
    laserlemon commented at 9:13 PM

    +1

    This behavior was certainly unexpected. I'll put together a patch.

Friday, September 04 2009
3148 Polymorphic belongs_to association isn't fully populated during build was created in Ruby on Rails
  • laserlemon
    laserlemon created the ticket at 4:33 PM

    With a one-to-many polymorphic association, the build method doesn't work as expected. Given the following models:

    class User < ActiveRecord::Base
      has_many :...
Wednesday, July 01 2009
2784 private method `split' called for #<Mime::Type:0x226f618> was updated in Ruby on Rails
  • laserlemon
    laserlemon commented at 1:11 AM

    I prefer:

    class Mime::Type
      delegate :split, :to => :to_s
    end
    
Friday, April 24 2009
2559 Inheritable ActionMailer server settings was created in Ruby on Rails
  • laserlemon
    laserlemon created the ticket at 3:38 PM

    When sending mail through Gmail servers, the "from" email address is changed to match the address used in the SMTP authentication. However, it's often required ...