Sha256: fd6b57069c8643864f29cdf8d504a5315e10f45ecb4fbb2a23b1b734e4d324be

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

module Bidu
  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
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
mercy-1.3.0 lib/bidu/mercy/concern.rb
bidu-mercy-1.3.0 lib/bidu/mercy/concern.rb