bin/console in usable-1.2.1 vs bin/console in usable-1.3.0
- old
+ new
@@ -52,13 +52,21 @@
def save
self.class.usable_method(self, :save_version).call
end
end
+module PersistenceOverride
+ def save
+ 'nope'
+ end
+end
+
class Example
extend Usable
usable Mixin, only: [:name, :from_spec]
end
+
+Model.usable PersistenceOverride, method: 'prepend'
require "irb"
IRB.start