lib/ransack.rb in ransack-1.0.0 vs lib/ransack.rb in ransack-1.1.0
- old
+ new
@@ -17,10 +17,10 @@
end
require 'ransack/translate'
require 'ransack/search'
require 'ransack/ransacker'
-require 'ransack/adapters/active_record'
+require 'ransack/adapters/active_record' if defined?(::ActiveRecord::Base)
require 'ransack/helpers'
require 'action_controller'
ActionController::Base.helper Ransack::Helpers::FormHelper
\ No newline at end of file