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.

There was a problem

You must be a member of this account.

Jake Dempsey's latest activity

Monday, April 18 2011
6711 ActiveRecord json serialization should respect as_json definition of included... was created in Ruby on Rails
  • Jake Dempsey
    Jake Dempsey created the ticket at 5:23 AM

    When I define an as_json override in Question, and provide it with an include for the associated profile, it does not use the as_json defined in the profile mod...

6710 ActiveRecord json serialization should not use keys defined in :methods for ... was updated in Ruby on Rails
  • Jake Dempsey
    • Title changed from ActiveRecorder json serialization should not use keys defined in :methods for included associations to ActiveRecord json serialization should not use keys defined in :methods for included associations
    by Jake Dempsey at 5:18 AM
  • Jake Dempsey
    Jake Dempsey created the ticket at 5:14 AM

    I am currently using as_json with something similar to:

    def as_json(opts={})

    super(:only => [:foo],
      :methods => [:some_method?], 
      :include => { 
        :assoc...
Wednesday, December 22 2010
6209 belongs_to returns nil when foreign key column doesnt exists: should at least... was updated in Ruby on Rails
  • Jake Dempsey
    Jake Dempsey commented at 9:36 PM

    While I can appreciate your comment and agree that overly defensive programming is usually not a good idea and can lead to bloat, I found it strange that I did ...

  • Jake Dempsey
    Jake Dempsey created the ticket at 5:15 PM

    class SomeTable < ActiveRecord::Base
    belongs_to :moo end

    If you say SomeTable.first.moo you will get nil. SomeTable does not have a column called moo_id.

    Should...

Friday, December 17 2010
4183 Possible memory leak in Rails 3 was updated in Ruby on Rails
  • Jake Dempsey
    Jake Dempsey commented at 2:26 PM

    @VirtualFunction

    I wasn't using class variables, but I agree with your observation. My main problem was with the User class reloading and when being added to my...

  • Jake Dempsey
    Jake Dempsey commented at 6:46 AM

    I found out what my issue was.. thought I would just reply here to show my findings

    I have created a small rails app here: https://github.com/angelo0000/memory_...

  • Jake Dempsey
    Jake Dempsey commented at 4:15 AM

    I am seeing this same problem. I have a rails 2.3.9 app that I converted to rails 3. Currently in development mode I see my ruby process grow by nearly 20mb on ...

Thursday, June 03 2010
4761 Skip before filters do not merge when subclassing was created in Ruby on Rails
  • Jake Dempsey
    Jake Dempsey created the ticket at 4:39 PM

    In the below scenario, we have a Core::FooController that defines some actions and also provides a skip before filter for one of his actions. Later we extend th...