spec/data/image.rb in dm-is-remixable-0.10.2 vs spec/data/image.rb in dm-is-remixable-1.0.0.rc1

- old
+ new

@@ -5,10 +5,20 @@ property :id, Serial property :description, String property :path, String + after :save, :hook_method + + def hook_method + @hook_method = true + end + + def hook_method_called? + defined?(@hook_method) ? true : false + end + # These methods will be available to the class remixing this module # If 'User' remixes 'Images', these methods will be available to a User class # module RemixerClassMethods def test_remixer_class_method @@ -40,6 +50,7 @@ module RemixeeInstanceMethods def test_remixee_instance_method 'INSTANCE METHOD FOR REMIXEE' end end + end