Sha256: 0c5df3801ab45127f11a6a2ab804edb48f39f81a15f59e7577d385b5945d491f

Contents?: true

Size: 519 Bytes

Versions: 14

Compression:

Stored size: 519 Bytes

Contents

ActiveAdmin.register <%= class_name %> do

<% if Rails::VERSION::MAJOR == 4 || defined?(ActionController::StrongParameters) %>
  # See permitted parameters documentation:
  # https://github.com/activeadmin/activeadmin/blob/master/docs/2-resource-customization.md#setting-up-strong-parameters
  #
  # permit_params :list, :of, :attributes, :on, :model
  #
  # or
  #
  # permit_params do
  #   permitted = [:permitted, :attributes]
  #   permitted << :other if resource.something?
  #   permitted
  # end
<% end %>

end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
yousty-activeadmin-1.0.17.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.16.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.15.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.14.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.13.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.12.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.11.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.10.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.9.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.8.pre lib/generators/active_admin/resource/templates/admin.rb
activeadmin-1.0.0.pre1 lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.7.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.6.pre lib/generators/active_admin/resource/templates/admin.rb
yousty-activeadmin-1.0.5.pre lib/generators/active_admin/resource/templates/admin.rb