Sha256: 3b079938a9b1d390f27276e0ec17ae90bc55760b13db3458c87c724dde4864bd

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
bidu-house-1.3.0 lib/bidu/house/concern.rb
bidu-house-1.2.0 lib/bidu/house/concern.rb
bidu-house-1.1.0 lib/bidu/house/concern.rb
bidu-house-1.0.0 lib/bidu/house/concern.rb
bidu-house-0.2.1 lib/bidu/house/concern.rb
bidu-house-0.2.0 lib/bidu/house/concern.rb