Sha256: ff968d1d9e08a9c1b4d37c125273837078a88d08a021f052b55d57e66400864a

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 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' do
      if Rails.application.config.respond_to?(:assets)
        Rails.application.config.assets.precompile += %w( templates/application.css )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
templates-rails-0.1.6 lib/templates/engine.rb
templates-rails-0.1.5 lib/templates/engine.rb
templates-rails-0.1.4 lib/templates/engine.rb
templates-rails-0.1.3 lib/templates/engine.rb