Permalink
Browse files

Fixing incorrect error messages in Adapters::Base

  • Loading branch information...
1 parent 769b90a commit f413b27c1a84b761a6dbaaa5b18e587da2bacfbb @serebryakov serebryakov committed May 28, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/lib/adapters/base.rb
View
@@ -28,7 +28,7 @@ def self.[](name)
when :rails then Rails
when :sparql then SPARQL
when :rest then REST
- else raise NameError, 'Adapter `%s` not recognized' % value.inspect
+ else raise NameError, 'Adapter `%s` not recognized' % name.inspect
end
end
@@ -42,7 +42,7 @@ class Base
# All adapters implement Logger
##
include RDFMapper::Logger
-
+
##
# Adapter implementation should override this method
##
@@ -61,21 +61,21 @@ def save(instance)
# Adapter implementation should override this method
##
def reload(instance)
- raise NotImplementedError, 'Expected adapter to override `save`'
+ raise NotImplementedError, 'Expected adapter to override `reload`'
end
##
# Adapter implementation should override this method
##
def update(instance)
- raise NotImplementedError, 'Expected adapter to override `save`'
+ raise NotImplementedError, 'Expected adapter to override `update`'
end
##
# Adapter implementation should override this method
##
def create(instance)
- raise NotImplementedError, 'Expected adapter to override `save`'
+ raise NotImplementedError, 'Expected adapter to override `create`'
end
end

0 comments on commit f413b27

Please sign in to comment.