Sha256: 6154cc5a5857046700456243abfb31aa2bb8ae3bbcf55871f5fa502d23dcd82f
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
require 'rubygems' require 'active_support' require 'active_record' this = File.expand_path(File.dirname(__FILE__)) Dir["#{this}/cockpit/*"].each { |c| require c } class Settings include Cockpit::Configuration end ActiveRecord::Base.send(:include, Cockpit) if defined?(ActiveRecord::Base) def Settings(*args, &block) Settings.define!(*args, &block) end def Cockpit(*args, &block) Settings(*args, &block) end require File.expand_path("#{this}/../app/models/setting.rb")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cockpit-0.0.1.7 | lib/cockpit.rb |