diff options
| author | mo khan <mo@mokhan.ca> | 2014-10-19 19:51:36 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-10-19 19:51:36 -0600 |
| commit | 832550cdd3c886969cf47874be3be1709e873bab (patch) | |
| tree | 09895012b866bc3632ef873052a9aa0880ac3827 /app/controllers/admin/users_controller.rb | |
| parent | fd6e72ea6fb5caeadb09a48642cda1f1b36cb645 (diff) | |
clean up the admin/users#show page.
Diffstat (limited to 'app/controllers/admin/users_controller.rb')
| -rw-r--r-- | app/controllers/admin/users_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index 11443d5b..d0ddb642 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -10,7 +10,7 @@ module Admin end def show - @user = repository.includes(creations: :photos).find(params[:id]) + @user = repository.includes(creations: [:photos, :tags]).find(params[:id]) end def update @@ -22,7 +22,7 @@ module Admin private def secure_params - params.require(:user).permit(:name, :email, :city, :website, :twitter, :facebook) + params.require(:user).permit(:name, :email, :city, :full_address, :website, :twitter, :facebook) end attr_reader :repository |
