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:
@@ -51,14 +51,14 @@ class DebatesController < ApplicationController
|
||||
set_debate_votes(@debate)
|
||||
end
|
||||
|
||||
def flag_as_inappropiate
|
||||
InappropiateFlag.flag!(current_user, @debate)
|
||||
respond_with @debate, template: 'debates/_refresh_flag_as_inappropiate_actions'
|
||||
def flag
|
||||
Flag.flag!(current_user, @debate)
|
||||
respond_with @debate, template: 'debates/_refresh_flag_actions'
|
||||
end
|
||||
|
||||
def undo_flag_as_inappropiate
|
||||
InappropiateFlag.unflag!(current_user, @debate)
|
||||
respond_with @debate, template: 'debates/_refresh_flag_as_inappropiate_actions'
|
||||
def unflag
|
||||
Flag.unflag!(current_user, @debate)
|
||||
respond_with @debate, template: 'debates/_refresh_flag_actions'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user