rails should always be requirable here
This commit is contained in:
parent
647eb5857d
commit
a2ed627740
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue