Permalink
Browse files

Now using `properties` instead of `attributes` when updating or creat…

…ing models
  • Loading branch information...
1 parent 642211c commit 41a422e0debaae684ba1ee8d289b3f702bae5e8c @serebryakov serebryakov committed May 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lib/adapters/rails.rb
@@ -59,15 +59,15 @@ def reload(instance)
# [-]
##
def update(instance)
- query = RDFMapper::Scope::Query.new(instance.class, :conditions => instance.attributes)
+ query = RDFMapper::Scope::Query.new(instance.class, :conditions => instance.properties)
Query.new(query, @options).update
end
##
# [-]
##
def create(instance)
- query = RDFMapper::Scope::Query.new(instance.class, :conditions => instance.attributes)
+ query = RDFMapper::Scope::Query.new(instance.class, :conditions => instance.properties)
Query.new(query, @options).create
end

0 comments on commit 41a422e

Please sign in to comment.