diff --git a/lib/polymer-rails/railtie.rb b/lib/polymer-rails/railtie.rb index 7a7c67a..325f98f 100644 --- a/lib/polymer-rails/railtie.rb +++ b/lib/polymer-rails/railtie.rb @@ -8,7 +8,9 @@ class Railtie < ::Rails::Railtie end initializer :precompile_polymer do |app| - app.config.assets.precompile += %w( polymer/polymer.js ) + if app.config.respond_to? (:assets) + app.config.assets.precompile += %w( polymer/polymer.js ) + end end initializer :add_preprocessors do |app|