]> cat aescling's git repositories - mastodon.git/commit
Restful refactor of accounts/ routes (#2133)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Wed, 19 Apr 2017 11:52:37 +0000 (07:52 -0400)
committerEugen <eugen@zeonfederated.com>
Wed, 19 Apr 2017 11:52:37 +0000 (13:52 +0200)
commit8bac0350d16cb8e2770c089c91d71f8038404de5
treef5b381319fde16fbe393dbae2cba1691f17aea9a
parentc0b30c56db36d0064ee7618976ab4e25f7a675fd
Restful refactor of accounts/ routes (#2133)

* Add routing specs for accounts followers and following actions

* Use more restful route naming for public account follow pages

Moves two actions:
- accounts#followers to accounts/follower_accounts#index
- accounts#following to accounts/following_accounts#index

Adds routing spec to ensure prior URLs are preserved.
18 files changed:
app/controllers/account_follow_controller.rb [new file with mode: 0644]
app/controllers/account_unfollow_controller.rb [new file with mode: 0644]
app/controllers/accounts_controller.rb
app/controllers/concerns/account_controller_concern.rb [new file with mode: 0644]
app/controllers/follower_accounts_controller.rb [new file with mode: 0644]
app/controllers/following_accounts_controller.rb [new file with mode: 0644]
app/views/accounts/_follow_grid.html.haml [new file with mode: 0644]
app/views/accounts/_header.html.haml
app/views/follower_accounts/index.html.haml [new file with mode: 0644]
app/views/following_accounts/index.html.haml [new file with mode: 0644]
config/routes.rb
spec/controllers/account_follow_controller_spec.rb [new file with mode: 0644]
spec/controllers/account_unfollow_controller_spec.rb [new file with mode: 0644]
spec/controllers/accounts_controller_spec.rb
spec/controllers/follower_accounts_controller_spec.rb [new file with mode: 0644]
spec/controllers/following_accounts_controller_spec.rb [new file with mode: 0644]
spec/requests/link_headers_spec.rb [new file with mode: 0644]
spec/routing/accounts_routing_spec.rb [new file with mode: 0644]