Skip to content
Browse files

fixing sum of methods

  • Loading branch information...
1 parent a6e6ddc commit 33e77fa87653393d62f55e15698d2378bf151082 @flvorful committed
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/super_inplace_controls.rb
View
3 lib/super_inplace_controls.rb
@@ -97,8 +97,7 @@ def set_final_text(object, attribute, options)
end.join(", ")
else
methods = options[:final_text]
- methods.inject(@item) { |sum_of_methods, meth| sum_of_methods = sum_of_methods.send(meth) }
- @final_text = sum_of_methods
+ @final_text = methods.inject(@item) { |sum_of_methods, meth| sum_of_methods = sum_of_methods.send(meth) }
end
@final_text
else

0 comments on commit 33e77fa

Please sign in to comment.
Something went wrong with that request. Please try again.