Sha256: eca99dd31132137f7b101506afa411b28486693565eed0b7fe57febde01d5786

Contents?: true

Size: 535 Bytes

Versions: 9

Compression:

Stored size: 535 Bytes

Contents

require 'rubygems'
require 'defined-by'

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

9 entries across 9 versions & 1 rubygems

Version Path
cockpit-0.2.4.4 lib/cockpit.rb
cockpit-0.2.4.3 lib/cockpit.rb
cockpit-0.2.4.2 lib/cockpit.rb
cockpit-0.2.4.1 lib/cockpit.rb
cockpit-0.2.4 lib/cockpit.rb
cockpit-0.2.3 lib/cockpit.rb
cockpit-0.2.2 lib/cockpit.rb
cockpit-0.2.1 lib/cockpit.rb
cockpit-0.2.0 lib/cockpit.rb