lib/representable/binding.rb in representable-1.5.0 vs lib/representable/binding.rb in representable-1.5.1
- old
+ new
@@ -10,13 +10,9 @@
# DISCUSS: move #create_binding to this class?
return definition.create_binding(*args) if definition.binding
build_for(definition, *args)
end
- def definition # TODO: remove in 1.4.
- raise "Binding#definition is no longer supported as all Definition methods are now delegated automatically."
- end
-
def initialize(definition, represented, user_options={}, lambda_context=represented) # TODO: remove default arg for user options. # DISCUSS: make lambda_context an options hash?
super(definition)
@represented = represented
@user_options = user_options
@lambda_context = lambda_context