Skip to content

Commit

Permalink
Merge branch 'master' of github.com:alchapone/polymer-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
alchaplinsky committed Feb 23, 2015
2 parents 2bb9de7 + 649fbac commit 16bf64d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/polymer-rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 16bf64d

Please sign in to comment.