mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
14 lines
415 B
Ruby
14 lines
415 B
Ruby
unless defined?(DEVISE_ORM)
|
|
DEVISE_ORM = (ENV["DEVISE_ORM"] || :active_record).to_sym
|
|
end
|
|
|
|
module Devise
|
|
# Detection for minor differences between Rails 4 and 5 in tests.
|
|
def self.rails5?
|
|
Rails.version.start_with? '5'
|
|
end
|
|
end
|
|
|
|
# Set up gems listed in the Gemfile.
|
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
|
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|