Skip to content

Commit

Permalink
Parenthesize method argument
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Mar 3, 2017
1 parent 3519b72 commit 326a097
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/mobility/active_model/backend_resetter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def initialize(attributes)
%i[changes_applied clear_changes_information].each do |method|
define_method method do
super()
instance_eval &model_reset_method
instance_eval(&model_reset_method)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/mobility/active_record/backend_resetter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def included(model_class)
model_class.class_eval do
mod = Module.new do
define_method :reload do
super().tap { instance_eval &model_reset_method }
super().tap { instance_eval(&model_reset_method) }
end
end
include mod
Expand Down
2 changes: 1 addition & 1 deletion lib/mobility/sequel/backend_resetter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def included(model_class)
model_class.class_eval do
mod = Module.new do
define_method :refresh do
super().tap { instance_eval &model_reset_method }
super().tap { instance_eval(&model_reset_method) }
end
end
include mod
Expand Down

0 comments on commit 326a097

Please sign in to comment.