Sha256: 38041b6bdb185b993cfd4d0e88b47ba0e6bba5a4e5cd4628933a50babeae9353

Contents?: true

Size: 1.29 KB

Versions: 29

Compression:

Stored size: 1.29 KB

Contents

ActiveAdmin.register <%= class_name %> do

  # See permitted parameters documentation:
  # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
  #
  # Uncomment all parameters which should be permitted for assignment
  #
  # permit_params <%= @boilerplate.permit_params %>
  #
  # or
  #
  # permit_params do
  #   permitted = [<%= @boilerplate.permit_params %>]
  #   permitted << :other if params[:action] == 'create' && current_user.admin?
  #   permitted
  # end
  <% if options.include_boilerplate? %>
  # Limit actions available to your users by adding them to the 'except' array
  # actions :all, except: []

  # Add or remove filters (you can use any ActiveRecord scope) to toggle their
  # visibility in the sidebar
  <%= @boilerplate.filters %>

  # Add or remove columns to toggle their visiblity in the index action
  # index do
  #   selectable_column
  #   id_column
  <%= @boilerplate.columns %>
  #   actions
  # end

  # Add or remove rows to toggle their visiblity in the show action
  # show do |<%= class_name.downcase %>|
  <%= @boilerplate.rows %>
  # end

  # Add or remove fields to toggle their visibility in the form
  # form do |f|
  #   f.inputs do
  <%= @boilerplate.form_inputs %>
  #   end
  #   f.actions
  # end
  <% end %>
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
activeadmin-2.8.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.8.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.7.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.6.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.6.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.5.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.4.0 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.3.1 lib/generators/active_admin/resource/templates/admin.rb.erb
activeadmin-2.3.0 lib/generators/active_admin/resource/templates/admin.rb.erb