Permalink
Browse files

Fix Lint/UselessAssignment offense

  • Loading branch information...
mvz committed Sep 23, 2017
1 parent de355dc commit c12a2d01d40559e609c06d786caa2317135a5411
@@ -17,8 +17,8 @@ def up
tg.display_name = cat.name
end
redirect = Redirect.create(from_path: "category/#{cat.permalink}",
to_path: File.join(Blog.first.base_url, 'tag', tag.name))
Redirect.create(from_path: "category/#{cat.permalink}",
to_path: File.join(Blog.first.base_url, 'tag', tag.name))
cat.articles.each do |article|
article.tags << tag
article.save
@@ -17,8 +17,8 @@ def up
tg.display_name = cat.name
end
redirect = Redirect.create(from_path: "category/#{cat.permalink}",
to_path: File.join(Blog.first.base_url, 'tag', tag.name))
Redirect.create(from_path: "category/#{cat.permalink}",
to_path: File.join(Blog.first.base_url, 'tag', tag.name))
cat.articles.each do |article|
article.tags << tag
article.save

0 comments on commit c12a2d0

Please sign in to comment.