Flexiblere Verwendung von get_first
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 25 Oct 2010 14:29:03 +0000 (16:29 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 19 Jan 2011 10:26:19 +0000 (11:26 +0100)
SL/DB/Helper/Manager.pm

index 5290533..8ebc362 100644 (file)
@@ -20,6 +20,7 @@ sub find_by {
 
 sub get_first {
   shift->get_all(
+    @_,
     limit => 1,
   )->[0];
 }