Skip to content

Commit

Permalink
fix creating users
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpeterson committed Nov 18, 2024
1 parent 2dc3d5e commit 312d018
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
File renamed without changes.
3 changes: 3 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
testing: true
---
!!!
%html{lang: I18n.locale}
%head
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/app/policies/user_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def title_attribute = :username

def permitted_attributes
[:username,
*(%i[password password_confirmation] if object == user)
*(%i[password password_confirmation] if object.new_record? or object == user)
]
end

Expand Down

0 comments on commit 312d018

Please sign in to comment.