Permalink
Browse files

Model#find

  • Loading branch information...
1 parent c57a8ba commit 3f79677018883e620aebf8c1a0ddfda21380bc98 Charles Max Wood committed Mar 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/sandra.rb
View
@@ -96,6 +96,10 @@ def get(key)
end
end
+ def find(key)
+ self.get(key)
+ end
+
def new_object(key, attributes)
obj = self.new(attributes)
obj.send("#{@key}=", key)

0 comments on commit 3f79677

Please sign in to comment.