Sha256: b74a155882b6522adf27d78b0fc373f7e6867e3e2eaf619b723df5a11de971dc
Contents?: true
Size: 440 Bytes
Versions: 6
Compression:
Stored size: 440 Bytes
Contents
module IB def self.db_backed? !!defined?(IB::DB) end def self.rails? !!defined?(Rails) && Rails.respond_to?('env') end end # module IB IbRuby = IB Ib = IB # IB Models can be either lightweight (tableless) or database-backed. # By default there is no DB backend, unless specifically requested # require 'ib/db' # to make all IB models database-backed if IB.rails? require 'ib/engine' else require 'ib/requires' end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.9.2 | lib/ib.rb |
ib-ruby-0.9.1 | lib/ib.rb |
ib-ruby-0.9.0 | lib/ib.rb |
ib-ruby-0.8.5 | lib/ib.rb |
ib-ruby-0.8.4 | lib/ib.rb |
ib-ruby-0.8.3 | lib/ib.rb |