Sha256: 2a2948fcadbaafa162d30ef7c90f13e76de9c373753ac6018f2e1abd0e63f22a

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 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
        Hanko::Fingerprint.prefix = app.config.hanko.prefix
        Hanko::Fingerprint.suffix = app.config.hanko.suffix
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanko-0.2.3 lib/hanko/railtie.rb
hanko-0.2.2 lib/hanko/railtie.rb
hanko-0.2.1 lib/hanko/railtie.rb
hanko-0.2.0 lib/hanko/railtie.rb
hanko-0.1.6 lib/hanko/railtie.rb