Skip to content

Commit

Permalink
fix cache_format_version = 6.1 deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Dec 8, 2023
1 parent 00ae25d commit 6d65033
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/motor/admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module Motor
class Admin < ::Rails::Engine
config.custom_html = ''

ActiveSupport.cache_format_version = Rails.version.to_f

if !Motor.development? && Rails.env.development?
config.eager_load_paths.delete(File.expand_path('../../app/controllers', __dir__))
config.eager_load_paths.delete(File.expand_path('../../app/controllers/concerns', __dir__))
Expand Down

0 comments on commit 6d65033

Please sign in to comment.