Sha256: a756517853e2f084df8349a90c4ba5a0ac1554c184b2ee39eaf38c3c2179786d
Contents?: true
Size: 606 Bytes
Versions: 5
Compression:
Stored size: 606 Bytes
Contents
module Strada class Engine < ::Rails::Engine # If you don't want to precompile Strada's assets (e.g., you're using jsbundling), # you can do this in an initializer: # # config.after_initialize do # config.assets.precompile -= Strada::Engine::PRECOMPILE_ASSETS # end PRECOMPILE_ASSETS = %w( strada.js ).freeze initializer "strada.assets" do if Rails.application.config.respond_to?(:assets) Rails.application.config.assets.precompile += PRECOMPILE_ASSETS end end config.app_generators do |g| g.template_engine :strada end end end
Version data entries
5 entries across 5 versions & 1 rubygems