Sha256: 729a6a9afe87e8b18327bd148805af169284feeef67f03c5419d679e3556b454

Contents?: true

Size: 364 Bytes

Versions: 16

Compression:

Stored size: 364 Bytes

Contents

# frozen_string_literal: true

module <%= class_name %>
  class Configuration
    # Define here the settings for this extension, e.g.:
    #
    # attr_accessor :my_setting
  end

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

    alias config configuration

    def configure
      yield configuration
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
solidus_dev_support-2.10.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.9.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.8.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.7.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.6.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.6 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.5 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.4 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.3 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.2 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.1 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.5.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.4.3 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.4.2 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.4.1 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt
solidus_dev_support-2.4.0 lib/solidus_dev_support/templates/extension/lib/%file_name%/configuration.rb.tt