lib/glimmer/data_binding/model_binding.rb in glimmer-1.0.5 vs lib/glimmer/data_binding/model_binding.rb in glimmer-1.0.6

- old
+ new

@@ -240,10 +240,10 @@ object.send(property_expression) end end def invoke_property_writer(object, property_expression, value) - return if @binding_options[:read_only] + raise "Cannot invoke `#{property_expression}` because ModelBinding#binding_options[:read_only]=true" if @binding_options[:read_only] value = convert_on_write(value) if property_indexed?(property_expression) property_method = '[]=' property_argument = property_expression[1...-2] property_argument = property_argument.to_i if property_argument.match(/\d+/)