lib/motion-kit/object.rb in motion-kit-0.12.0 vs lib/motion-kit/object.rb in motion-kit-0.13.0
- old
+ new
@@ -2,6 +2,17 @@
def motion_kit_meta
@motion_kit_meta ||= {}
end
+ def motion_kit_id=(id)
+ motion_kit_meta[:motion_kit_ids] ||= []
+ motion_kit_meta[:motion_kit_ids] << id
+ end
+
+ def motion_kit_id
+ if motion_kit_meta[:motion_kit_ids]
+ motion_kit_meta[:motion_kit_ids][-1]
+ end
+ end
+
end