Sha256: a0d0c0aaaa2eae4783cc1062d5b1b141b6d57a91d004dddbd23ba99709b6473d
Contents?: true
Size: 235 Bytes
Versions: 6
Compression:
Stored size: 235 Bytes
Contents
module Octodmin::Controllers::Posts class Manage def call(params) self.format = :json @post = Octodmin::Post.find(params[:id]) halt 400, JSON.dump(errors: ["Could not find post"]) unless @post end end end
Version data entries
6 entries across 6 versions & 1 rubygems