Commit a65cf77e authored by James Lopez's avatar James Lopez

fixes and refactored JSON spec

parent 5cd3d7c4
...@@ -8,7 +8,7 @@ module Eventable ...@@ -8,7 +8,7 @@ module Eventable
def events=(events) def events=(events)
events.each do |event| events.each do |event|
event.target_id = id event.target_id = id
event.data.deep_symbolize_keys! event.data.deep_symbolize_keys! if event.data
event.save! event.save!
end end
end end
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment