Sha256: 89c175cf7f9bf1f2554ef17607260a68835ddc08abd0d46e205d4ee9d48f1577

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

require "rails"

module Hanko
  class Railtie < ::Rails::Railtie
    config.hanko = ActiveSupport::OrderedOptions.new

    initializer "hanko.load_action_view" do |app|
      ActiveSupport.on_load(:action_view) do
        Hanko::Init.new(app.config.hanko.digest_class).ready
        Hanko::Fingerprint.cachable = app.config.hanko.cachable
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hanko-0.1.5 lib/hanko/railtie.rb
hanko-0.1.4 lib/hanko/railtie.rb