Sha256: ca79143a198815fe07a50035a2ebe26af322dce1c3354d6f2b224607044a31b1
Contents?: true
Size: 736 Bytes
Versions: 5
Compression:
Stored size: 736 Bytes
Contents
require "yaml" module Octopus def self.env() @env ||= defined?(Rails) ? Rails.env.to_s : "production" end def self.config() @config ||= YAML.load_file(Octopus.directory() + "/config/shards.yml") end # Returns the Rails.root_to_s when you are using rails # Running the current directory in a generic Ruby process def self.directory() @directory ||= defined?(Rails) ? Rails.root.to_s : Dir.pwd end end require "octopus/proxy" require "octopus/migration" require "octopus/model" require "octopus/persistence" require "octopus/controller" require "octopus/association" require "octopus/association_collection" require "octopus/scope_proxy" require "octopus/has_and_belongs_to_many_association"
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ar-octopus-0.0.12 | lib/octopus.rb |
ar-octopus-0.0.11 | lib/octopus.rb |
ar-octopus-0.0.10 | lib/octopus.rb |
ar-octopus-0.0.9 | lib/octopus.rb |
ar-octopus-0.0.8 | lib/octopus.rb |