Skip to content

Commit

Permalink
Merge pull request #90 from mattbeedle/serialize-memoization
Browse files Browse the repository at this point in the history
Remove memoization from serializer. Resolves #88
  • Loading branch information
mattbeedle committed Jan 24, 2015
2 parents aa9e9fd + 6c0cd0f commit 1442961
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/capsule_crm/serializer.rb
Original file line number Diff line number Diff line change
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 1442961

Please sign in to comment.