Skip to content

Commit

Permalink
Fix missing Administrate::VERSION reference
Browse files Browse the repository at this point in the history
In #2479, we switched to using a dedicated `ActiveSupport::Deprecation`
instance to handle a deprecation warning. Unfortunately, in some
circumstances, we reference the `VERSION` constant when it's not been
loaded, which seems to happen when we render the deprecation warnings.
  • Loading branch information
JohnnyKei authored and nickcharlton committed Jan 24, 2024
1 parent f8a6996 commit 195126d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/administrate.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "administrate/engine"
require "administrate/version"

module Administrate
def self.warn_of_missing_resource_class
Expand Down

0 comments on commit 195126d

Please sign in to comment.