Skip to content

Commit

Permalink
Accessors here are public
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Oct 6, 2020
1 parent 2042865 commit c8c638e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionmailer/test/base_test.rb
Expand Up @@ -981,13 +981,13 @@ def a_callback
def swap(klass, new_values)
old_values = {}
new_values.each do |key, value|
old_values[key] = klass.send key
klass.send :"#{key}=", value
old_values[key] = klass.public_send key
klass.public_send :"#{key}=", value
end
yield
ensure
old_values.each do |key, value|
klass.send :"#{key}=", value
klass.public_send :"#{key}=", value
end
end

Expand Down

0 comments on commit c8c638e

Please sign in to comment.