-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --add-to-inventory to dup ingredient new
- Loading branch information
Arthur Axel 'fREW' Schmidt
committed
Sep 20, 2012
1 parent
8764bf7
commit 3d9d69c
Showing
4 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package DU::Schema::ResultSet::User; | ||
|
||
use 5.16.1; | ||
use warnings; | ||
|
||
use parent 'DU::Schema::ResultSet'; | ||
|
||
sub find_by_name { | ||
my $me = $_[0]->current_source_alias; | ||
$_[0]->single({ "$me.name" => $_[1] }) | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env perl | ||
|
||
use 5.16.1; | ||
use warnings; | ||
|
||
my $file = shift; | ||
open my $fh, '>', $file; | ||
my $yml = <<'YML'; | ||
--- | ||
name: Flesh | ||
description: 1 lb | ||
YML | ||
print $fh $yml; | ||
close $fh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters