Sha256: 817411b5be972c657bf58bd5645db473c2cf1c733787c8739f2cf328db44cf6b

Contents?: true

Size: 385 Bytes

Versions: 9

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true
module ActiveEncode
  class EncodeRecordController < ApplicationController
    rescue_from ActiveRecord::RecordNotFound do |e|
      render json: { message: e.message }, status: :not_found
    end

    def show
      @encode_record = ActiveEncode::EncodeRecord.find(params[:id])
      render json: @encode_record.raw_object, status: :ok
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
active_encode-1.2.3 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.2.2 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.2.1 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.2.0 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.1.3 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.1.2 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.1.1 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.1.0 app/controllers/active_encode/encode_record_controller.rb
active_encode-1.0.0 app/controllers/active_encode/encode_record_controller.rb