Sha256: 019579f0e501acd6533c51856b3fdc9e30924c1e59cfc13dfa663faba1081d84
Contents?: true
Size: 423 Bytes
Versions: 6
Compression:
Stored size: 423 Bytes
Contents
module Iatelier module Controllers module Books class Update include Iatelier::Action include Iatelier::Controllers::Books::DbConnector def call(params) self.set_database params[:database] @book = Object.const_get(params[:book_type].capitalize).find(params[:id]) @book.revise(params) @book.save self.body = @book.save.to_json end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems