Sha256: a530df0b4c2f97b2d4864a45e135bd16075df35a28b7b28a5fd046fa2d09c9fd

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

require 'rubygems'
require 'active_support'
require 'active_record'

this = File.dirname(__FILE__)
Dir["#{this}/cockpit/*"].each { |c| require c }

class Settings
  include Cockpit::Configuration
end

def Settings(*args, &block)
  Settings.configure(*args, &block)
end

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

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

require "#{this}/../app/models/setting.rb"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cockpit-0.0.1.5 lib/cockpit.rb