Sha256: f518af2bbcedf1b8a40534b67efd1536fe02b7fdc70db902a80df6f9de5c0423

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

module SnapshotInspector
  class Snapshots::ResponseController < ApplicationController
    rescue_from Snapshot::NotFound, with: :snapshot_not_found

    layout false, only: [:raw]

    def show
      @snapshot = Snapshot.find(params[:slug])
    end

    def raw
      @snapshot = Snapshot.find(params[:slug])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snapshot_inspector-0.1.1 app/controllers/snapshot_inspector/snapshots/response_controller.rb