#1406 ✓resolved
mark

Model#as_json method with explicit nil argument (ActiveSupport compatibility)

Reported by mark | September 10th, 2010 @ 04:50 PM | in 1.1

http://pastie.org/1151023 -- reproducing the bug.

ActiveSupport explicitly calls Model#as_json(nil) which causes the havoc.

Obvious fix: add options ||= {} to the first line of as_json method.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Referenced by

Pages