]> cat aescling's git repositories - mastodon.git/commit
Admin base controller (#1465)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Mon, 10 Apr 2017 19:27:03 +0000 (15:27 -0400)
committerEugen <eugen@zeonfederated.com>
Mon, 10 Apr 2017 19:27:03 +0000 (21:27 +0200)
commitdbe9f33fdc9a995b07ff3b1dcd93ad02cd336649
treed89768083aba71c27789dfb08651ef27811954cf
parent1be6aa0c7fdac51e81ff7ee0c2b9184ed29ca3de
Admin base controller (#1465)

* Add Admin::BaseController to wrap admin area

Extracts the setting of the `admin` layout and verifying that users are admins
to a common base class for the admin/ controllers.

* Add basic coverage for admin/reports and admin/settings controllers
app/controllers/admin/accounts_controller.rb
app/controllers/admin/base_controller.rb [new file with mode: 0644]
app/controllers/admin/domain_blocks_controller.rb
app/controllers/admin/pubsubhubbub_controller.rb
app/controllers/admin/reports_controller.rb
app/controllers/admin/settings_controller.rb
spec/controllers/admin/reports_controller_spec.rb [new file with mode: 0644]
spec/controllers/admin/settings_controller_spec.rb [new file with mode: 0644]