Sha256: 8ea6c8013427165b34bf5147d1731a03edb2fc3c82e1e9b6b54f521c13272b4c

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

module ParamsBuilder
  class Configuration
    attr_accessor :file_path

    def initialize
      @file_path = "#{Rails.root}/params_builders" if defined?(Rails)
    end
  end

  class << self
    def configure
      yield config
    end

    def config
      @config ||= Configuration.new
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
params_builder-0.2.0 lib/params_builder/configuration.rb
params_builder-0.1.0 lib/params_builder/configuration.rb