Sha256: a624cea317a9a7011a6fa9271a28277c86510d9fdab1a78305fa40c898d1c953

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 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
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hanko-0.1.3 lib/hanko/railtie.rb
hanko-0.1.2 lib/hanko/railtie.rb
hanko-0.1.1 lib/hanko/railtie.rb
hanko-0.1.0 lib/hanko/railtie.rb