Sha256: 8b32f0ab2cc6036dd8d696ce569d9ac981a1eb400bbaa289b58241f1c381bb43

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 Bytes

Contents

require 'digest'
require 'uri'

require "kf5/version"
require "kf5/configuration"
require "kf5/properties"
require "kf5/helper"
require "kf5/view_helper"

module KF5
  def self.configure(&block)
    yield configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  if defined?(::Rails::Engine)
    class Engine < ::Rails::Engine
      initializer "kf5" do
        ActiveSupport.on_load :action_controller do
          include KF5::Helper
        end
        ActiveSupport.on_load :action_view do
          include KF5::ViewHelper
        end
        Rails.application.config.assets.precompile += %w( kf5.js )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kf5-0.2.1 lib/kf5.rb
kf5-0.2.0 lib/kf5.rb