Sha256: 24edad71a3d64d0bde0ca5e76bf8f9e9b2515b34eb41c165220e523abf92e50e

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

require 'rubygems'

this = File.expand_path(File.dirname(__FILE__))
Dir["#{this}/cockpit/*"].each { |c| require c unless File.directory?(c) }
Dir["#{this}/cockpit/core/*"].each { |c| require c unless File.directory?(c) }
Dir["#{this}/cockpit/adapters/*"].each { |c| require c unless File.directory?(c) }

ActiveRecord::Base.send(:include, Cockpit) if defined?(ActiveRecord::Base)

def Settings(*args, &block)
  Cockpit::Settings.define!(*args, &block)
end

def Cockpit(*args, &block)
  Settings(*args, &block)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cockpit-0.1.1 lib/cockpit.rb