lib/representable/definition.rb in representable-1.3.2 vs lib/representable/definition.rb in representable-1.3.3
- old
+ new
@@ -61,7 +61,15 @@
end
def default
options[:default]
end
+
+ def binding
+ options[:binding]
+ end
+
+ def create_binding(*args)
+ binding.call(self, *args)
+ end
end
end