Skip to content

Commit

Permalink
remove root elements from api
Browse files Browse the repository at this point in the history
  • Loading branch information
lazaronixon committed Feb 17, 2022
1 parent 973752a commit 24c4d28
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ class PasswordResetsController < ApplicationController
end

def password_params
params.require(:<%= singular_table_name %>).permit(:password, :password_confirmation)
params.permit(:password, :password_confirmation)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ class PasswordsController < ApplicationController
end

def password_params
params.require(:<%= singular_table_name %>).permit(:password, :password_confirmation)
params.permit(:password, :password_confirmation)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ class RegistrationsController < ApplicationController

private
def <%= "#{singular_table_name}_params" %>
params.require(:<%= singular_table_name %>).permit(:email, :password, :password_confirmation)
params.permit(:email, :password, :password_confirmation)
end
end

0 comments on commit 24c4d28

Please sign in to comment.