Sha256: e03f869eb526b9611894df71c9d23584fa8cae182982457d204f579a0884eb42

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

require 'rails'
module Kuhsaft
  class Engine < Rails::Engine
    initializer 'kuhsaft.init_stylesheets' do |app|
      Sass::Plugin.add_template_location File.join(Kuhsaft::Engine.root, 'app', 'stylesheets'), File.join(Rails.root, 'public', 'stylesheets')
    end
    
    initializer 'kuhsaft.static_assets' do |app|
      if app.config.serve_static_assets
        app.middleware.insert 0, ::ActionDispatch::Static, "#{root}/public"
      end
    end
    
    initializer 'kuhsaft.helpers' do |app|
      # Include your helpers here or they won't be loaded
      # ActionView::Base.send :include, Kuhsaft::PagesHelper
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kuhsaft-0.0.3 lib/kuhsaft/engine.rb