Sha256: 7662778c56e6ad31215256f921f617ef8c7460ab10d8dba448a4750631efeb4b

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

module Templates
  class Engine < ::Rails::Engine
    initializer 'templates', before: :load_config_initializers do
      Rails.application.routes.append do
        mount Templates::Engine => '/templates'
      end
    end

    initializer 'templates.assets.precompile' do |app|
      app.config.assets.precompile += %w( templates/application.css )
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
templates-rails-0.1.2 lib/templates/engine.rb