Sha256: e87b023760a7a94e803a426fe02845a823dca31282a0fac48ffc0f06f58d4ff2

Contents?: true

Size: 737 Bytes

Versions: 12

Compression:

Stored size: 737 Bytes

Contents

<header>
  <h1>Passkit Previews</h1>
  <%= render 'shared/passkit/navigation' %>
</header>
<main>
  <p>Here you can generate a Pass from the ones available. Configure your available passes with:</p>
  <pre>
  Passkit.configure do |config|
    config.available_passes['Passkit::YourPass'] = -> { FactoryBot.create(:user) }
  end
</pre>
  <p>Where you specify the class name as key and a function to generate a builder,
    that will be passed used to generte the Pass</p>

  <% Passkit.configuration.available_passes.each do |pass_class_name, _builder_function| %>
    <article>
      <h2><%= pass_class_name %></h2>
      <%= link_to 'Generate and download', dashboard_preview_path(pass_class_name) %>
    </article>
  <% end %>
</main>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
passkit-0.7.0 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.6.1 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.6.0 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.5.4 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.5.3 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.5.2 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.5.1 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.5.0 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.4.3 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.4.2 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.4.1 app/views/passkit/dashboard/previews/index.html.erb
passkit-0.4.0 app/views/passkit/dashboard/previews/index.html.erb