Commit 3274cfdd authored by Nick Thomas's avatar Nick Thomas

Resolve conflict in app/controllers/concerns/membership_actions.rb

parent c620ca03
...@@ -54,17 +54,13 @@ module MembershipActions ...@@ -54,17 +54,13 @@ module MembershipActions
"You left the \"#{membershipable.human_name}\" #{source_type}." "You left the \"#{membershipable.human_name}\" #{source_type}."
end end
<<<<<<< HEAD
log_audit_event(member, action: :destroy) unless member.request? log_audit_event(member, action: :destroy) unless member.request?
redirect_path = member.request? ? member.source : [:dashboard, membershipable.class.to_s.tableize]
=======
respond_to do |format| respond_to do |format|
format.html do format.html do
redirect_path = member.request? ? member.source : [:dashboard, membershipable.class.to_s.tableize] redirect_path = member.request? ? member.source : [:dashboard, membershipable.class.to_s.tableize]
redirect_to redirect_path, notice: notice redirect_to redirect_path, notice: notice
end end
>>>>>>> ce-com/master
format.json { render json: { notice: notice } } format.json { render json: { notice: notice } }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment