Skip to content

Commit

Permalink
Don't use gsub bang method
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Buijs committed Apr 28, 2012
1 parent 54df5d1 commit 35f93d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller.rb
Expand Up @@ -44,10 +44,10 @@ def match
end

def prdmessage
respond_with ProductieMessage.by_id(params[:id]).to_json(methods: :content).gsub!(/\\u([0-9a-z]{4})/) {|s| [$1.to_i(16)].pack("U")}
respond_with ProductieMessage.by_id(params[:id]).to_json(methods: :content).gsub(/\\u([0-9a-z]{4})/) {|s| [$1.to_i(16)].pack("U")}
end

def accmessage
respond_with AcceptatieMessage.by_id(params[:id]).to_json(methods: :content).gsub!(/\\u([0-9a-z]{4})/) {|s| [$1.to_i(16)].pack("U")}
respond_with AcceptatieMessage.by_id(params[:id]).to_json(methods: :content).gsub(/\\u([0-9a-z]{4})/) {|s| [$1.to_i(16)].pack("U")}
end
end

0 comments on commit 35f93d5

Please sign in to comment.