Skip to content
Snippets Groups Projects
  1. May 01, 2017
    • yhirano's avatar
      Fix Rubocop offences (#2630) · 3988f2da
      yhirano authored
      * disable Bundler/OrderedGems
      
      * fix rubocop Lint/UselessAssignment
      
      * fix rubocop Style/BlockDelimiters
      
      * fix rubocop Style/AlignHash
      
      * fix rubocop Style/AlignParameters, Style/EachWithObject
      
      * fix rubocop Style/SpaceInLambdaLiteral
      3988f2da
  2. Apr 29, 2017
  3. Apr 25, 2017
    • alpaca-tc's avatar
      Localize with i18n for Devise::FailureApp (#2309) · 9317ec8e
      alpaca-tc authored
      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.
      9317ec8e
  4. Apr 19, 2017
    • Matt Jankowski's avatar
      Restful refactor of accounts/ routes (#2133) · 8bac0350
      Matt Jankowski authored
      * 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.
      8bac0350
  5. Apr 14, 2017
    • Matt Jankowski's avatar
      Improve i18n chooser (#1804) · f5cd1383
      Matt Jankowski authored
      * Add locale spec with failing locale plus region check
      
      * Use a more accurate locale when supplied by browser headers
      
      Previously we were using a matching option which would use the first locale
      available which matched the locale portion, even if a region was specified.
      
      This changes to first try to find an exact match, and then fall back to the
      region, and then fall back to the  default.
      
      * Clean up default_locale method
      f5cd1383
  6. Apr 12, 2017
  7. Apr 09, 2017
  8. Apr 08, 2017
  9. Apr 07, 2017
    • Eugen Rochko's avatar
      Allow setting of default language through config · e3a3422a
      Eugen Rochko authored
      Setting of locale in controller extracted to Localized concern,
      the doorkeeper authorized applications controller moved under
      custom namespace with inclusion of Localized, which resolves the
      "it sometimes appears in a different random language" bug
      e3a3422a
  10. Mar 14, 2017
  11. Feb 11, 2017
  12. Nov 30, 2016
  13. Feb 20, 2016
Loading