Permalink
Please sign in to comment.
Browse files
allow users to delete their own accounts
not much can actually be deleted, but it can be put into a deleted state
- Loading branch information...
Showing
with
124 additions
and 30 deletions.
- +3 −3 app/assets/stylesheets/application.css
- +1 −1 app/controllers/application_controller.rb
- +2 −2 app/controllers/login_controller.rb
- +12 −0 app/controllers/settings_controller.rb
- +3 −2 app/controllers/stories_controller.rb
- +30 −5 app/models/user.rb
- +2 −2 app/views/comments/_comment.html.erb
- +26 −0 app/views/settings/index.html.erb
- +34 −12 app/views/users/show.html.erb
- +2 −2 app/views/users/tree.html.erb
- +2 −0 config/routes.rb
- +5 −0 db/migrate/20140113153413_add_account_deletion.rb
- +2 −1 db/schema.rb
| @@ -0,0 +1,5 @@ | ||
| class AddAccountDeletion < ActiveRecord::Migration | ||
| def change | ||
| add_column :users, :deleted_at, :datetime | ||
| end | ||
| end |
0 comments on commit
e12d91c