lib/generators/active_admin/install/templates/admin_user.rb.erb in yousty-activeadmin-1.0.4.pre vs lib/generators/active_admin/install/templates/admin_user.rb.erb in yousty-activeadmin-1.0.5.pre
- old
+ new
@@ -1,27 +1,30 @@
ActiveAdmin.register <%= @user_class %> do
+<% unless Rails::VERSION::MAJOR < 4 -%>
+ permit_params :email, :password, :password_confirmation
+
+<% end -%>
index do
+ selectable_column
+ id_column
column :email
column :current_sign_in_at
- column :last_sign_in_at
column :sign_in_count
- default_actions
+ column :created_at
+ actions
end
filter :email
+ filter :current_sign_in_at
+ filter :sign_in_count
+ filter :created_at
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