Sha256: aab37f0b5d718455dbdef1ba9c896f1983f8b3970c0b437aff8ee8469aedf0fb

Contents?: true

Size: 799 Bytes

Versions: 5

Compression:

Stored size: 799 Bytes

Contents

module KonoUtils
  class Engine < ::Rails::Engine

    require 'rdiscount'
    require 'pundit'
    require 'kono_utils_helpers'


    initializer 'kono_utils.append_views', :group => :all do |app|
      ActionController::Base.append_view_path KonoUtils::Engine.root.join("app", "views", "kono_utils")
    end


    initializer 'kono_utils.append_helpers', :group => :all do |app|
      KonoUtils.configure do |c|
        c.application_helper_includes << KonoUtils::ApplicationCoreHelper
        c.application_helper_includes << KonoUtils::ApplicationEnumHelper
        c.base_editing_helper_includes << KonoUtils::BaseEditingCoreHelper
      end
    end

    initializer 'kono_utils.appen_custom_format', :group => :all do |app|
      Mime::Type.register Mime[:js].to_s, :inject
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kono_utils-1.1.4 lib/kono_utils/engine.rb
kono_utils-1.1.3 lib/kono_utils/engine.rb
kono_utils-1.1.2 lib/kono_utils/engine.rb
kono_utils-1.1.1 lib/kono_utils/engine.rb
kono_utils-1.1.0 lib/kono_utils/engine.rb