Sha256: aaaf81ac497599007bbf6e5044e240a4bc66157d2c614c58769a0d651d6f9b90
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
require 'biggs/format' require 'biggs/formatter' require 'yaml' module Biggs class << self def formats @@formats ||= YAML.load_file(File.join(File.dirname(__FILE__), '..', 'formats.yml')) || {} end def country_names @@country_names ||= YAML.load_file(File.join(File.dirname(__FILE__), '..', 'country_names.yml')) || {} end end end if defined?(ActiveRecord) and defined?(ActiveRecord::Base) and !ActiveRecord::Base.respond_to?(:biggs_formatter) require 'biggs/activerecord' ActiveRecord::Base.send :include, Biggs::ActiveRecordAdapter end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
biggs-0.3.3 | lib/biggs.rb |
biggs-0.3.2 | lib/biggs.rb |
biggs-0.3.1 | lib/biggs.rb |
biggs-0.3.0 | lib/biggs.rb |