Jeremy Kemper
Account member
Jeremy Kemper's latest activity
Thursday, July 01 2010
Wednesday, June 30 2010
-
Jeremy Kemper commented at 6:44 PMUsers always call
foo.to_jsonorActiveSupport::JSON.encode(foo)The implementor of
Foowrites anas_json -
- State changed from open to duplicate
Reviewing the examples above, this was fixed. Please verify on latest master!
-
- Milestone set to 2.3.9
- State changed from invalid to open
Implementing
as_jsonis right. Usingto_jsonis a mess because JSON libraries use it for their internal encoding API.This is similar to the Marshal library: yo...
-
Jeremy Kemper commented at 5:15 PMI 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
-
-
- Assigned user set to Yehuda Katz (wycats)
- State changed from new to open
- Milestone cleared.
- Importance changed from to Low
5003
default_scope prevents a rake db:migrate if attributes in DB don't exist
was updated
in Ruby on Rails
-
- Milestone cleared.
- State changed from new to open
- Importance changed from to Low
4994
Rails3: observer in config/application.rb brokes rake db:migrate
was updated
in Ruby on Rails
-
Jeremy Kemper commented at 4:11 AMWorkaround:
def self.old() where :status => 'old' endThe root fix is as Santiago suggests: building the relation should be lazy, not loading the table until ...