Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug fix on getting connection and ruby 1.8.7 compatibility.

  • Loading branch information...
commit 2af8d35c454baad4d66143aa4c5cc0f81ad42a75 1 parent a91ed0b
Charlie Savage authored
View
2  Rakefile
@@ -62,4 +62,4 @@ hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc'
PROJECT_ROOT = File.expand_path(".")
-require_relative 'loader'
+require 'loader'
View
2  lib/composite_primary_keys/association_proxy.rb
@@ -8,7 +8,7 @@ def full_columns_equals(table_name, keys, quoted_ids)
ids = [quoted_ids].flatten
[keys,ids].transpose.map do |key, id|
- "(#{quoted_table_name}.#{connection.quote_column_name(key)} = #{id})"
+ "(#{quoted_table_name}.#{@owner.connection.quote_column_name(key)} = #{id})"
end.join(' AND ')
end
View
2  loader.rb
@@ -2,7 +2,7 @@
begin
local_file_supported = Dir[File.join(PROJECT_ROOT, 'local/*.sample')].map { |path| File.basename(path).sub(".sample","") }
local_file_supported.each do |file|
- require_relative "local/#{file}"
+ require "local/#{file}"
end
rescue LoadError
puts <<-EOS
Please sign in to comment.
Something went wrong with that request. Please try again.