{"record":{"id":"0cab91e632bdcd26","repo":"railsadminteam/rails_admin","slug":"the-sidescroll-configuration-option-was-removed-i","errorCode":null,"errorMessage":"The sidescroll configuration option was removed, it is always enabled now.","messagePattern":"The sidescroll configuration option was removed, it is always enabled now\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"lib/rails_admin/config.rb","lineNumber":291,"sourceCode":"      def parent_controller=(name)\n        @parent_controller = name\n\n        if defined?(RailsAdmin::ApplicationController) || defined?(RailsAdmin::MainController)\n          RailsAdmin::Config::ConstLoadSuppressor.allowing do\n            RailsAdmin.send(:remove_const, :ApplicationController)\n            RailsAdmin.send(:remove_const, :MainController)\n            load RailsAdmin::Engine.root.join('app/controllers/rails_admin/application_controller.rb')\n            load RailsAdmin::Engine.root.join('app/controllers/rails_admin/main_controller.rb')\n          end\n        end\n      end\n\n      def total_columns_width=(_)\n        ActiveSupport::Deprecation.warn('The total_columns_width configuration option is deprecated and has no effect.')\n      end\n\n      def sidescroll=(_)\n        ActiveSupport::Deprecation.warn('The sidescroll configuration option was removed, it is always enabled now.')\n      end\n\n      # Setup actions to be used.\n      def actions(&block)\n        return unless block\n\n        RailsAdmin::Config::Actions.reset\n        RailsAdmin::Config::Actions.instance_eval(&block)\n      end\n\n      # Returns all model configurations\n      #\n      # @see RailsAdmin::Config.registry\n      def models\n        RailsAdmin::AbstractModel.all.collect { |m| model(m) }\n      end\n\n      # Reset all configurations to defaults.","sourceCodeStart":273,"sourceCodeEnd":309,"githubUrl":"https://github.com/railsadminteam/rails_admin/blob/0690a5e62f8d99bc00495a3754f5189b23124387/lib/rails_admin/config.rb#L273-L309","documentation":"RailsAdmin 3.x made horizontal scrolling of the list view permanently enabled (sticky columns), so the global sidescroll= setter (lib/rails_admin/config.rb:291) only emits an ActiveSupport::Deprecation warning and ignores the value. It exists purely so 2.x initializers keep booting.","triggerScenarios":"An initializer containing `config.sidescroll = false` (or true). The warning appears at boot when the initializer is evaluated; the list view keeps sidescrolling regardless of the value passed.","commonSituations":"Upgrading rails_admin 2.x → 3.x where sidescroll = false was a common way to force the old table layout; initializers shared between apps of different rails_admin versions; CI configured to raise on deprecation warnings.","solutions":["Delete the `config.sidescroll = ...` line from the initializer — sidescroll is always on and there is no replacement switch.","If you wanted to reduce horizontal scrolling, cut the number of visible columns instead: `list { field :description { visible false } }` or configure only the fields you need.","Remove the per-model variant too if present (`list { sidescroll false }` warns separately via sections/list.rb)."],"exampleFix":"# before: config/initializers/rails_admin.rb\nRailsAdmin.config do |config|\n  config.sidescroll = false\nend\n\n# after: sidescroll is always enabled; remove the line\nRailsAdmin.config do |config|\nend","handlingStrategy":"validation","validationCode":"# Fail fast in test env if removed options are still configured\nActiveSupport::Deprecation.behavior = :raise\n# plus: grep config/ for `config.sidescroll =` and delete every occurrence","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Read the rails_admin upgrading notes (CHANGELOG 'Breaking changes' sections) when bumping major versions.","Grep for both spellings once: global `config.sidescroll` and per-model `list { sidescroll ... }`.","Keep a smoke spec that loads every configured model's index page; deprecated options only fire when the config block evaluates."],"tags":["rails-admin","deprecation","configuration","ruby","upgrade","list-view"],"backgroundTag":"deprecated-config-option","analyzedSha":"0690a5e62f8d99bc00495a3754f5189b23124387","analyzedAt":"2026-08-21T18:31:19.382Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}