Skip to content

Commit

Permalink
add permitted params to cope with Rails 4 mass assignment protection
Browse files Browse the repository at this point in the history
see activeadmin/activeadmin#2326 for discussion.
  • Loading branch information
bru committed Nov 1, 2013
1 parent 74129e0 commit 7e8869d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/admin/admin_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@
end
f.actions
end

controller do
def permitted_params
params.permit admin_user: [:email, :password, :password_confirmation]
end
end
end

0 comments on commit 7e8869d

Please sign in to comment.