fixes typo
This commit is contained in:
@@ -2,18 +2,18 @@ module FlagActions
|
|||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
|
||||||
def flag
|
def flag
|
||||||
Flag.flag(current_user, flagable)
|
Flag.flag(current_user, flaggable)
|
||||||
respond_with flagable, template: "#{controller_name}/_refresh_flag_actions"
|
respond_with flaggable, template: "#{controller_name}/_refresh_flag_actions"
|
||||||
end
|
end
|
||||||
|
|
||||||
def unflag
|
def unflag
|
||||||
Flag.unflag(current_user, flagable)
|
Flag.unflag(current_user, flaggable)
|
||||||
respond_with flagable, template: "#{controller_name}/_refresh_flag_actions"
|
respond_with flaggable, template: "#{controller_name}/_refresh_flag_actions"
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def flagable
|
def flaggable
|
||||||
instance_variable_get("@#{controller_name.singularize}")
|
instance_variable_get("@#{controller_name.singularize}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user