lib/eastwood/engine.rb in eastwood-0.3.1 vs lib/eastwood/engine.rb in eastwood-0.3.2

- old
+ new

@@ -1,13 +1,15 @@ module Eastwood - class Engine < Rails::Engine + class Engine < ::Rails::Engine initializer 'eastwood.setup' do |app| # include helpers in the sprockets context app.assets.context_class.instance_eval do include Eastwood::Context end # watch for changes in eastwood initializer - app.config.watchable_files << 'config/initializers/eastwood.rb' + if app.config.respond_to? :watchable_files + app.config.watchable_files << 'config/initializers/eastwood.rb' + end end end end