Skip to content
Browse files

changed -> to lambda for readability

  • Loading branch information...
1 parent cbbe6fb commit 236091dc07ae7072a055c6c422a41c21bc25a51e @mkuklis mkuklis committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/statable.rb
View
2 lib/statable.rb
@@ -22,7 +22,7 @@ def statable(attr, options = {})
# wire callbacks
callbacks.each do |key, callback|
- scope.send key, ->(record) {
+ scope.send key, lambda { |record|
if root_class.evaluate_conditions(record, conditions)
record = record.send root_class.name.downcase unless root_class == scope

0 comments on commit 236091d

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