Sha256: dc33947f4657237de7774f690b9baf02a3841be7f29cea56886cd2a172930a4a

Contents?: true

Size: 335 Bytes

Versions: 61

Compression:

Stored size: 335 Bytes

Contents

module GovukTechDocs
  class UniqueIdentifierExtension < Middleman::Extension
    def initialize(app, options_hash = {}, &block)
      super

      app.before do
        UniqueIdentifierGenerator.instance.reset
      end
    end
  end
end

::Middleman::Extensions.register(:unique_identifier, GovukTechDocs::UniqueIdentifierExtension)

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
govuk_tech_docs-4.1.1 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-4.1.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-4.0.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.5.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.4.5 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.4.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.3.1 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.3.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.2.1 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.2.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.1.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.0.1 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-3.0.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.4.3 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.4.2 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.4.1 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.4.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.3.0 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.2.2 lib/govuk_tech_docs/unique_identifier_extension.rb
govuk_tech_docs-2.2.1 lib/govuk_tech_docs/unique_identifier_extension.rb