]> cat aescling's git repositories - mastodon.git/commit
Admin accounts controller cleanup (#1664)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Thu, 13 Apr 2017 11:04:23 +0000 (07:04 -0400)
committerEugen <eugen@zeonfederated.com>
Thu, 13 Apr 2017 11:04:23 +0000 (13:04 +0200)
commit3a9eb81a8006af0306e8abc54bd8aca8381eee25
tree9bae0b991f7db4cfe0de626829995346cdb29549
parent0e39cc6a35661416a1f1ccb8841863f7bf307020
Admin accounts controller cleanup (#1664)

* Remove unused account_params method in admin/accounts controller

* Introduce AccountFilter to find accounts

* Use AccountFilter in admin/accounts controller

* Use more restful routes admin silence and suspension area

* Add admin/silences and admin/suspensions controllers
app/controllers/admin/accounts_controller.rb
app/controllers/admin/silences_controller.rb [new file with mode: 0644]
app/controllers/admin/suspensions_controller.rb [new file with mode: 0644]
app/models/account_filter.rb [new file with mode: 0644]
app/views/admin/accounts/show.html.haml
config/routes.rb
spec/controllers/admin/silences_controller_spec.rb [new file with mode: 0644]
spec/controllers/admin/suspensions_controller_spec.rb [new file with mode: 0644]
spec/models/account_filter_spec.rb [new file with mode: 0644]