From ef6bff12fdb311548fc7db0835fbb84e847505c9 Mon Sep 17 00:00:00 2001 From: Andrew H Schwartz Date: Wed, 24 Jan 2024 02:31:26 -0500 Subject: [PATCH] Include version const 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'