Sha256: 82b26c1621df629845e6da17d14b77611235d8e94a723d82f623f8db2fcd1cc6

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

module Passkit
  class PreviewsController < ActionController::Base
    layout "passkit/application"

    def index
    end

    def show
      builder = Passkit.configuration.available_passes[params[:class_name]]
      send_file Factory.create_pass(params[:class_name].constantize, builder.call)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passkit-0.3.3 app/controllers/passkit/previews_controller.rb