From 4a6f9b93adb860c038b6be0c6d5972cb51ea1e70 Mon Sep 17 00:00:00 2001 From: Andrew H Schwartz Date: Sat, 10 Feb 2024 09:03:43 -0500 Subject: [PATCH] Include version const (#1477) Include the file `version.rb` to define the `Ransack::VERSION` const. Ransack defines a `VERSION` const, but the `version.rb` file is not included in the requires list in the gem entry code. --- lib/ransack.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ransack.rb b/lib/ransack.rb index db632efb..1a88b646 100644 --- a/lib/ransack.rb +++ b/lib/ransack.rb @@ -21,6 +21,7 @@ class UntraversableAssociationError < StandardError; end require 'ransack/translate' require 'ransack/active_record' require 'ransack/context' +require 'ransack/version' ActiveSupport.on_load(:action_controller) do require 'ransack/helpers'