Sha256: 3a7559b68dbdb1fc7fda49033865c102bba1c3d82cb2ad420cf1f3e6647a4220

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true
module FoundationRailsHelper
  class << self
    attr_writer :configuration
  end

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

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  class Configuration
    attr_accessor :button_class
    attr_accessor :ignored_flash_keys
    attr_accessor :auto_labels

    def initialize
      @button_class = 'success button'
      @ignored_flash_keys = []
      @auto_labels = true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foundation_rails_helper-4.0.1 lib/foundation_rails_helper/configuration.rb
foundation_rails_helper-4.0.0 lib/foundation_rails_helper/configuration.rb
foundation_rails_helper-3.0.0 lib/foundation_rails_helper/configuration.rb
foundation_rails_helper-3.0.0.rc2 lib/foundation_rails_helper/configuration.rb
foundation_rails_helper-3.0.0.rc lib/foundation_rails_helper/configuration.rb
foundation_rails_helper-3.0.0.beta3 lib/foundation_rails_helper/configuration.rb