Skip to content
Browse files

solve the update problem

  • Loading branch information...
1 parent 541c2e3 commit d5b56a48910cb47b775a6621b75fbdc4cfbbde94 @siddick committed
Showing with 5 additions and 5 deletions.
  1. +1 −1 Gemfile.lock
  2. +2 −2 activerecord-datastore-adapter.gemspec
  3. +1 −1 examples/rails3.rb
  4. +1 −1 lib/arel/visitors/datastore.rb
View
2 Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- activerecord-datastore-adapter (0.0.3)
+ activerecord-datastore-adapter (0.0.4)
activerecord (= 3.0.6)
appengine-apis (= 0.0.22)
arel (>= 2.0.7)
View
4 activerecord-datastore-adapter.gemspec
@@ -3,11 +3,11 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "activerecord-datastore-adapter"
- s.version = "0.0.3"
+ s.version = "0.0.4"
s.platform = Gem::Platform::RUBY
s.authors = ["Mohammed Siddick"]
s.email = ["siddick@gmail.com"]
- s.homepage = "http://rubygems.org/gems/datastore"
+ s.homepage = "https://github.com/siddick/datastore"
s.summary = %q{ActiveRecord Adapter for Appengine Datastore}
s.description = %q{Just an ActiveRecord Adapter for the Appengine Datastore.
Create Rails3 application: rails new app_name -m http://siddick.github.com/datastore/rails3.rb}
View
2 examples/rails3.rb
@@ -8,7 +8,7 @@
bundle_path ".gems/bundler_gems"
gem 'rails', '3.0.6'
-gem 'activerecord-datastore-adapter', '>= 0.0.3'
+gem 'activerecord-datastore-adapter', '>= 0.0.4'
gem 'jruby-rack', '1.0.5'
GEMFILE
View
2 lib/arel/visitors/datastore.rb
@@ -136,7 +136,7 @@ def visit_Arel_Nodes_InsertStatement o
end
def visit_Arel_Nodes_UpdateStatement o
- QString.new( @connection, o.relation.name, :values => o.values.collect{|v| [ v.left.name, v.right ] } ).wheres( o.wheres )
+ QString.new( @connection, o.relation.name, :values => o.values.collect{|v| [ v.left.name, insert_type_case(v.right) ] } ).wheres( o.wheres )
end
def visit_Arel_Nodes_DeleteStatement o

0 comments on commit d5b56a4

Please sign in to comment.
Something went wrong with that request. Please try again.