Sha256: 193894f6e46488464acd8abce7ce26dc81d4f88a16163293acbb077eb7bf9c4a

Contents?: true

Size: 543 Bytes

Versions: 6

Compression:

Stored size: 543 Bytes

Contents

ActiveAdmin.register <%= @user_class %> do
  index do
    column :email
    column :current_sign_in_at
    column :last_sign_in_at
    column :sign_in_count
    default_actions
  end

  filter :email

  form do |f|
    f.inputs "Admin Details" do
      f.input :email
      f.input :password
      f.input :password_confirmation
    end
    f.actions
  end
<% unless Rails::VERSION::MAJOR < 4 -%>
  controller do
    def permitted_params
      params.permit admin_user: [:email, :password, :password_confirmation]
    end
  end
<% end -%>
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
yousty-activeadmin-1.0.4.pre lib/generators/active_admin/install/templates/admin_user.rb.erb
yousty-activeadmin-1.0.3.pre lib/generators/active_admin/install/templates/admin_user.rb.erb
yousty-activeadmin-1.0.2.pre lib/generators/active_admin/install/templates/admin_user.rb.erb
yousty-activeadmin-1.0.1.pre lib/generators/active_admin/install/templates/admin_user.rb.erb
yousty-activeadmin-1.0.0.pre lib/generators/active_admin/install/templates/admin_user.rb.erb
aa-rails4-0.6.0 lib/generators/active_admin/install/templates/admin_user.rb.erb