class Fasta::Server::Actions::Patch
Public Instance Methods
default_response_code()
click to toggle source
# File lib/fasta/server/actions/patch.rb, line 7 def default_response_code 200 end
success()
click to toggle source
# File lib/fasta/server/actions/patch.rb, line 11 def success db_table.where(id: params[:id]).update(params.merge(default_updated_at)) db_table.first(id: params[:id]) end