Sha256: a3887052f7224970da1460311798946c92de457c4ccc9fc34164530913e16945

Contents?: true

Size: 551 Bytes

Versions: 3

Compression:

Stored size: 551 Bytes

Contents

# Loading engine only if this is not a standalone installation
unless defined? ComfyCarousel::Application
  require File.expand_path('comfy_carousel/engine', File.dirname(__FILE__))
end

[ 'comfy_carousel/configuration',
  'comfy_carousel/form_builder'
].each do |path|
  require File.expand_path(path, File.dirname(__FILE__))
end

module ComfyCarousel
  class << self
    
    def configure
      yield configuration
    end
    
    def configuration
      @configuration ||= Configuration.new
    end
    alias :config :configuration
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_carousel-0.0.3 lib/comfy_carousel.rb
comfy_carousel-0.0.2 lib/comfy_carousel.rb
comfy_carousel-0.0.1 lib/comfy_carousel.rb