Sha256: 6ffcb34e6538a47c740d69707581ea5e76c368310265d941b37a16298db82fa0

Contents?: true

Size: 698 Bytes

Versions: 5

Compression:

Stored size: 698 Bytes

Contents

ActiveAdmin.register User do

  ##################################
  ##################################

  # => Menu
  menu priority: 1, label: -> { "🔑" + User.model_name.human(count: 2) }

  # => Params
  permit_params :email, :password, :password_confirmation

  ##################################
  ##################################

  # => Index
  index do
    column :email
    column :current_sign_in_at
    column :last_sign_in_at
    column :sign_in_count
    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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fl-0.3.4 app/admin/users.rb
fl-0.3.3 app/admin/users.rb
fl-0.3.2 app/admin/users.rb
fl-0.3.1 app/admin/users.rb
fl-0.3.0 app/admin/users.rb