Skip to content

Commit

Permalink
Move Haml filter loading to after initialization
Browse files Browse the repository at this point in the history
This avoids Bundler loading order issues.
  • Loading branch information
elia committed Aug 22, 2013
1 parent 656d905 commit 74818fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/opal/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
require 'opal/rails/engine'
require 'opal/rails/template_handler'
require 'opal/rails/version'
require 'opal/rails/haml_filter' if defined?(Haml)

require 'jquery-rails'
2 changes: 2 additions & 0 deletions lib/opal/rails/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Engine < ::Rails::Engine
end

config.after_initialize do |app|
require 'opal/rails/haml_filter' if defined?(Haml)

config.opal.each_pair do |key, value|
key = "#{key}="
Opal::Processor.send(key, value) if Opal::Processor.respond_to? key
Expand Down

0 comments on commit 74818fe

Please sign in to comment.