gab-social/app/controllers
rubic0n 28beb28a78 Upgrade to Rails 6
- Added listen gem because rails app:update failed without it
- Removes nsa gem because it requires activesupport < 6
  Oddly, there's a newer version per GitHub that's not on RubyGems
  that raises the requirement to < 7. But, we need a new release
  before we can use that.
- Upgrade rails-i18n to v6, for Rails 6 compatibility
- Remove redis-rails since it requires Rails < 6, but we can just use
  the regular Rails :redis_cache_store that was introduced in 5.2.
- Run `rails app:update`
  - Had to weed through the `config/environments` changes to pick up
    newly added settings, while not losing settings that were
    intentionally configured
  - This generated config/initializers/new_framework_defaults_6_0.rb.
    The goal is to uncomment all of the settings in that file. Once
    they're all uncommented, delete the file and edit
    config/application.rb's load_defaults to be 6.0.
  - force_ssl controller method is deprecated in favor of a Rails
    config setting.
  - bin/setup was generated by Rails
  - Verbose query logging in development is really helpful. It shows
    you what line of code caused a query to execute.
  - Calling establish_connection after worker boot isn't necessary
    with ActiveRecord anymore. ActiveRecord handles it gracefully.
  - Rails generated a migration to add a foreign key for ActiveStorage.
    Gab currently doesn't use ActiveStorage, and instead uses Paperclip
    (since ActiveStorage didn't exist when Mastadon started). So, this
    change isn't relevant to Gab.
- Added ` || ''` in the profiles controller, because I was unable
  to save a change to a newly created profile. (This probably
  explains the 500 error I received on prod Gab recently.)
2021-01-23 09:01:31 -06:00
..
admin Added/Updated admin dashboard tables 2021-01-19 01:25:25 -05:00
api [group collection] default to hot posts 2021-01-22 00:46:51 -05:00
auth [sessions] stick to master, take 2 2020-12-28 01:15:59 -05:00
concerns Commiting 2020-11-25 15:22:37 -06:00
oauth Pulled 2020-04-30 12:33:41 -04:00
settings Upgrade to Rails 6 2021-01-23 09:01:31 -06:00
about_controller.rb Commiting 2020-11-15 12:48:32 -06:00
application_controller.rb Upgrade to Rails 6 2021-01-23 09:01:31 -06:00
empty_controller.rb Removed some Rack configs and moved RackAttack rate limits, headers 2021-01-14 13:37:38 -05:00
manifests_controller.rb Fixed issue with manifest.json route 2020-12-26 15:25:39 -05:00
media_proxy_controller.rb Progress 2020-12-22 12:49:40 -05:00
react_controller.rb Removed unncessary set_data_for_meta before_action in ReactController react route 2021-01-15 15:02:24 -05:00