-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f685186
commit f9f853f
Showing
2 changed files
with
33 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
syntax error in 'STDIN:19:21': unexpected token: ) | ||
struct UUID | ||
def self.adapter | ||
Lucky | ||
end | ||
|
||
module Lucky | ||
alias ColumnType = String | ||
include Avram::Type | ||
|
||
def parse(value : UUID) | ||
success(value) | ||
end | ||
|
||
def parse(values : Array(UUID)) | ||
success values | ||
end | ||
|
||
def parse(value : String) | ||
success(value) | ||
rescue | ||
fail | ||
end | ||
|
||
def to_db(value : UUID) | ||
value.to_s | ||
end | ||
|
||
class Criteria(T, V) < Avram::Criteria(T, V) | ||
end | ||
end | ||
end |
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