filebase 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/filebase/model.rb +1 -1
- metadata +1 -1
data/lib/filebase/model.rb
CHANGED
@@ -29,7 +29,7 @@ class Filebase
|
|
29
29
|
def []( key ) ; find( key ) ; end
|
30
30
|
def save( object )
|
31
31
|
raise( Filebase::Error.new, 'attempted to save an object with nil key' ) if object.key.nil? or object.key.empty?
|
32
|
-
db.save( object.key, object.to_h )
|
32
|
+
db.save( object.key, object.to_h ) and object
|
33
33
|
end
|
34
34
|
def delete( object )
|
35
35
|
raise( Filebase::Error.new, 'attempted to delete an object with nil key' ) if object.key.nil? or object.key.empty?
|