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

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

Fix indents in permit_params block
Fix indents in permit_params block

Indents changed to use 2 spaces instead of 1,