class Polymer::Rails::Railtie
Private Instance Methods
add_preprocessors(app)
click to toggle source
# File lib/polymer-rails/railtie.rb, line 21 def add_preprocessors(app) app.config.assets.configure do |env| env.context_class.class_eval("include Polymer::Rails::AssetTagHelper") env.register_preprocessor 'text/html', Polymer::Rails::Processors::Directive env.register_mime_type 'text/html', extensions: ['.html'] env.register_bundle_processor 'text/html', ::Sprockets::Bundle env.register_postprocessor 'text/html', Polymer::Rails::Processors::Component end end