Skip to content

Commit

Permalink
use json serialization instead of yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Resonious committed Apr 6, 2015
1 parent 234a03b commit aae6d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public_activity/orm/active_record/activity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Activity < ::ActiveRecord::Base
# Define ownership to a resource targeted by this activity
belongs_to :recipient, :polymorphic => true
# Serialize parameters Hash
serialize :parameters, Hash
serialize :parameters, JSON

if ::ActiveRecord::VERSION::MAJOR < 4 || defined?(ProtectedAttributes)
attr_accessible :key, :owner, :parameters, :recipient, :trackable
Expand Down

0 comments on commit aae6d11

Please sign in to comment.