This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def delete_attachment | |
@user = User.find(params[:id]) | |
type = params[:type] | |
@user.update_attribute(type, false) | |
remove_document case type | |
when "letter_approved" then "letter" | |
end | |
@user.save! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JirasController < ApplicationController | |
def generate_work_log | |
... | |
fields.each_with_index do |field,index| | |
progress = field.index | |
WebsocketRails[:admin_channel].trigger :event_name, progress | |
end | |
end |