1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/spec/controllers
alpaca-tc 9317ec8eb1 Localize with i18n for Devise::FailureApp (#2309)
This PR fixes I18n.locale for rake middlewares. Mastodon uses Devise that depends on Warden.
Warden::Manager can be found in rake middleware. It is outside of the controller.

In the case of authentication failed, warden calls throw(:warden). At the time Warden::Manager
delegates request to failure_app to generate response and flash[:alert] after catching it.
Unfortunately, I18n.locale is already reset then because I18n.with_locale is enabled only
inside the controller. If we used I18n.locale=, Devise::FailureApp could get the current locale.
2017-04-25 15:06:41 +02:00
..
admin Admin settings controller refactor, add specs, cleanup (#2225) 2017-04-20 17:18:09 +02:00
api Change ActivityPub paging to match spec. Clean up ActivityPub outbox changes. (#2410) 2017-04-25 15:06:06 +02:00
auth Localize with i18n for Devise::FailureApp (#2309) 2017-04-25 15:06:41 +02:00
oauth Fix flashes partial render error for controllers which don't inherit from application controller (#2400) 2017-04-24 17:30:30 +02:00
settings Followers-only post federation (#2111) 2017-04-24 00:38:37 +02:00
well_known Clean up well-known routes/controllers (#1649) 2017-04-13 13:09:07 +02:00
about_controller_spec.rb Clean up about page (#1282) 2017-04-09 14:47:25 +02:00
account_follow_controller_spec.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
account_unfollow_controller_spec.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
accounts_controller_spec.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
authorize_follow_controller_spec.rb Add ability to use remote follow function on other sites 2016-12-29 16:54:54 +01:00
follower_accounts_controller_spec.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
following_accounts_controller_spec.rb Restful refactor of accounts/ routes (#2133) 2017-04-19 13:52:37 +02:00
home_controller_spec.rb Fix OAuth authorization page and add a spec for it 2016-11-18 23:10:44 +01:00
media_controller_spec.rb Media controller specs (#2022) 2017-04-17 20:02:00 +02:00
stream_entries_controller_spec.rb Simplify the way the embed view is created (#1590) 2017-04-12 16:12:42 +02:00
tags_controller_spec.rb Fix OAuth authorization page and add a spec for it 2016-11-18 23:10:44 +01:00