Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Model#find

  • Loading branch information...
commit 3f79677018883e620aebf8c1a0ddfda21380bc98 1 parent c57a8ba
Charles Max Wood authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/sandra.rb
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.