Sha256: c7730a10c4fd1404c66dda570394b83752f2fa025a76f7baa35245a183b175bb

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

module Mercy
  extend ActiveSupport::Concern

  def render_status(key = :default)
    status = self.class.status_builder.build(key, params)
    render json: status.as_json.stringify_keys.to_deep_hash, status: status.status
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mercy-1.6.0 lib/mercy/concern.rb
mercy-1.5.0 lib/mercy/concern.rb