Sha256: 1d772010e091d76d14df50b8ba38ca531eeb00885be9c5df4f84c435b3f76cfc

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

require "carrier/rails/engine" if defined?(Rails)

require 'sweetloader'

require 'sugar-high/array'
require 'sugar-high/rails/concerns'
require 'sugar-high/dsl'

module Carrier
  autoload_modules :Configuration, :Rails

  class << self
    def config &block
      conf = Carrier::Configuration.instance
      yield conf if block
      conf
    end

    alias_method :configure, :config
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
carrier-0.1.2 lib/carrier.rb
carrier-0.1.1 lib/carrier.rb
carrier-0.1.0 lib/carrier.rb