Sha256: 231255ccaace3819b120c449d62ca473958b60d95fb1c664de0425016d4fea8a

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

module Kayessess
  class Engine < ::Rails::Engine

    isolate_namespace Kayessess
    engine_name "kayessess"

    # Ensure assets are available to loaded environment
    initializer "kayessess.assets.precompile" do |app|
      app.config.assets.precompile += [/kayessess\/kayessess\.(js|css)/]
    end

    # Ensure that application helpers are available to kayessess.
    # This is important as we need to make sure that application helpers can be
    # used within styleguide examples.
    config.to_prepare do
      Kayessess::ApplicationController.helper Rails.application.helpers
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kayessess-0.4.0 lib/kayessess/engine.rb