diff --git a/test/action_view/models/category.rb b/test/action_view/models/category.rb index ada142b..a4cb434 100644 --- a/test/action_view/models/category.rb +++ b/test/action_view/models/category.rb @@ -12,7 +12,7 @@ class Category def initialize(params = {}) params.each do |attr, value| - public_send("#{attr}=", value) + public_send(:"#{attr}=", value) end end diff --git a/test/action_view/models/comment.rb b/test/action_view/models/comment.rb index 3db34d0..aeca8d6 100644 --- a/test/action_view/models/comment.rb +++ b/test/action_view/models/comment.rb @@ -12,7 +12,7 @@ class Comment def initialize(params = {}) params.each do |attr, value| - public_send("#{attr}=", value) + public_send(:"#{attr}=", value) end end diff --git a/test/action_view/models/post.rb b/test/action_view/models/post.rb index f4da3ae..c59b90d 100644 --- a/test/action_view/models/post.rb +++ b/test/action_view/models/post.rb @@ -12,7 +12,7 @@ class Post def initialize(params = {}) params.each do |attr, value| - public_send("#{attr}=", value) + public_send(:"#{attr}=", value) end end