#%w{activerecord activesupport activemodel arel builder i18n tzinfo}.each do |lib|
#  path = File.expand_path("../vendor/#{lib}/lib",__FILE__)
#  $:.unshift(path)
#end
#require 'rubygems'
#gem 'activesupport', ">= 3.0.0.beta"
#gem 'activemodel', ">= 3.0.0.beta"
#gem 'activerecord', ">= 3.0.0.beta"
#require 'active_support/all'
#require 'active_record'
#require 'arel'
#ActiveRecord::Base.establish_connection({:adapter => 'mysql', :socket => '/tmp/webo-mysql-stat.sock', :database => 'aimfar_prod'})
#Arel::Table.engine = Arel::Sql::Engine.new(ActiveRecord::Base)
#users = Arel::Table.new(:users)
#puts Arel::Project.new(users,users[:id]).to_sql

require 'active_support/core_ext'
require 'sower/relation'
require 'sower/condition'
require 'sower/node'
require 'sower/edge'
require 'sower/graph'
require 'sower/design'
module Sower # :nodoc:
end

# Use vendored libraries
$:.unshift(File.expand_path('../vendor/activesupport/lib',__FILE__))
%w{activerecord activesupport activemodel arel builder i18n tzinfo}.each do |lib|
  path = File.expand_path("../vendor/#{lib}/lib",__FILE__)
  $:.unshift(path)
end

class Object
  def to_sql
    "'#{to_s}'"
  end
  def to_dot
    nil
  end
end
class NilClass
  def to_sql
    nil
  end
end
class Array
  def to_sql
    map(&:to_sql).join(',')
  end
end

require 'active_support/all'
require 'active_support/version'
puts ActiveSupport::VERSION::STRING


require 'sower/relation'
require 'sower/condition'
require 'sower/node'
require 'sower/edge'
require 'sower/graph'
require 'sower/design'
module Sower # :nodoc:
end

Use vendor libraries and add core extensions
Use vendor libraries and add core extensions
