mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Make sure to load rails before loading haml
Or haml/railtie will not be required. This normally will be done inside haml-rails for the users' apps, but since we're not depending on haml-rails in this repo to avoid mutual dependency, we need to carefully craft the gem load order here.
This commit is contained in:
parent
186e044eda
commit
09299ea9e1
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,6 @@ if ENV["COVERAGE"]
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'bundler'
|
require 'bundler'
|
||||||
Bundler.require(:default)
|
|
||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
require 'action_pack'
|
require 'action_pack'
|
||||||
require 'action_controller'
|
require 'action_controller'
|
||||||
|
@ -21,6 +20,7 @@ require 'action_view'
|
||||||
require 'action_view/base'
|
require 'action_view/base'
|
||||||
require 'nokogiri'
|
require 'nokogiri'
|
||||||
require 'rails'
|
require 'rails'
|
||||||
|
Bundler.require(:default)
|
||||||
|
|
||||||
if defined?(I18n.enforce_available_locales)
|
if defined?(I18n.enforce_available_locales)
|
||||||
I18n.enforce_available_locales = true
|
I18n.enforce_available_locales = true
|
||||||
|
|
Loading…
Reference in a new issue