diff options
author | jaseg <git@jaseg.de> | 2022-03-01 22:46:17 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-03-01 22:46:17 +0100 |
commit | f21dea91904d7bf9628457a5758016c9a0df6d38 (patch) | |
tree | 32f5b5767134db8f631063fd3fc68d76a59a8e1b /themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md | |
parent | 7e86971cf714f3c00a1c91a397816663987f69fc (diff) | |
parent | 6ae65c23958c6029205aeb3d573d6042a6ae7ff5 (diff) | |
download | blog-f21dea91904d7bf9628457a5758016c9a0df6d38.tar.gz blog-f21dea91904d7bf9628457a5758016c9a0df6d38.tar.bz2 blog-f21dea91904d7bf9628457a5758016c9a0df6d38.zip |
deploy.py auto-commit
Diffstat (limited to 'themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md')
-rw-r--r-- | themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md b/themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md deleted file mode 100644 index 4614e74..0000000 --- a/themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: Juicy Code -author: Open Source -date: '2012-01-23' -categories: - - Code -tags: - - Juicy -slug: juicy-code ---- - -Check out this JUICY! code: - -~~~ruby -def with_value_from_database(value) - self.class.from_database(name, value, type) -end - -def with_cast_value(value) - self.class.with_cast_value(name, value, type) -end - -def with_type(type) - if changed_in_place? - with_value_from_user(value).with_type(type) - else - self.class.new(name, value_before_type_cast, type, original_attribute) - end -end -~~~ |