1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

rails should always be requirable here

This commit is contained in:
Akira Matsuda 2016-10-24 23:06:06 +09:00
parent 647eb5857d
commit a2ed627740

View file

@ -3,10 +3,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(Gem.loaded_specs['kaminari-core'].gem_dir, 'spec')) $LOAD_PATH.unshift(File.join(Gem.loaded_specs['kaminari-core'].gem_dir, 'spec'))
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.dirname(__FILE__))
begin require 'rails'
require 'rails'
rescue LoadError
end
require 'bundler/setup' require 'bundler/setup'
Bundler.require Bundler.require