Several renamings
InappropiateFlag -> Flag x.flag_as_inappropiate -> x.flag x.undo_flag_as_inappropiate -> x.unflag X.flagged_as_inappropiate -> x.flagged flag-as-inappropiate-actions views & css -> flag-actions views & css
This commit is contained in:
@@ -22,14 +22,14 @@ class CommentsController < ApplicationController
|
||||
respond_with @comment
|
||||
end
|
||||
|
||||
def flag_as_inappropiate
|
||||
InappropiateFlag.flag!(current_user, @comment)
|
||||
respond_with @comment, template: 'comments/_refresh_flag_as_inappropiate_actions'
|
||||
def flag
|
||||
Flag.flag!(current_user, @comment)
|
||||
respond_with @comment, template: 'comments/_refresh_flag_actions'
|
||||
end
|
||||
|
||||
def undo_flag_as_inappropiate
|
||||
InappropiateFlag.unflag!(current_user, @comment)
|
||||
respond_with @comment, template: 'comments/_refresh_flag_as_inappropiate_actions'
|
||||
def unflag
|
||||
Flag.unflag!(current_user, @comment)
|
||||
respond_with @comment, template: 'comments/_refresh_flag_actions'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user