Commit 84645da35b42ab4fc32be6e2981c1ae80ea74b03
1 parent
e387ff00
Exists in
master
and in
27 other branches
Typo fix
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
@@ -17,7 +17,7 @@ class ContentViewerController < ApplicationController | @@ -17,7 +17,7 @@ class ContentViewerController < ApplicationController | ||
17 | return if redirected_to_profile_index | 17 | return if redirected_to_profile_index |
18 | else | 18 | else |
19 | @page = profile.articles.find_by_path(path) | 19 | @page = profile.articles.find_by_path(path) |
20 | - return if redirecetd_page_from_old_path(path) | 20 | + return if redirected_page_from_old_path(path) |
21 | end | 21 | end |
22 | 22 | ||
23 | return unless allow_access_to_page(path) | 23 | return unless allow_access_to_page(path) |
@@ -161,7 +161,7 @@ class ContentViewerController < ApplicationController | @@ -161,7 +161,7 @@ class ContentViewerController < ApplicationController | ||
161 | return false | 161 | return false |
162 | end | 162 | end |
163 | 163 | ||
164 | - def redirecetd_page_from_old_path(path) | 164 | + def redirected_page_from_old_path(path) |
165 | unless @page | 165 | unless @page |
166 | page_from_old_path = profile.articles.find_by_old_path(path) | 166 | page_from_old_path = profile.articles.find_by_old_path(path) |
167 | if page_from_old_path | 167 | if page_from_old_path |