lib/grape/router/attribute_translator.rb in grape-1.7.0 vs lib/grape/router/attribute_translator.rb in grape-1.7.1
- old
+ new
@@ -37,10 +37,10 @@
attributes
end
def method_missing(method_name, *args)
if setter?(method_name[-1])
- attributes[method_name[0..-1]] = *args
+ attributes[method_name[0..]] = *args
else
attributes[method_name]
end
end