Skip to content

Commit

Permalink
Remove memoization from serializer. Resolves #88
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbeedle committed Jan 24, 2015
1 parent aa9e9fd commit 6c0cd0f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/capsule_crm/serializer.rb
Expand Up @@ -8,12 +8,7 @@ def initialize(options = {})

def serialize(object)
@object = object
@serialized ||=
if include_root?
serialize_with_root
else
serialize_without_root
end
include_root? ? serialize_with_root : serialize_without_root
end

def self.serialize_collection(klass, collection)
Expand Down

0 comments on commit 6c0cd0f

Please sign in to comment.