summaryrefslogtreecommitdiff
path: root/themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-02-23 22:34:51 +0100
committerjaseg <git@jaseg.de>2022-02-23 22:34:51 +0100
commit6ae65c23958c6029205aeb3d573d6042a6ae7ff5 (patch)
tree1e7f84a57415a203fcc3fc6b48535b1d8af6cb72 /themes/blog.jaseg.de/exampleSite/content/post/2012-01-23-juicy-code.md
parent072b2d38e254cfa662d4d9e994e624f612d1766e (diff)
parentc21e6f3076149fb8c9c9f6c154ea907a32af9494 (diff)
downloadblog-6ae65c23958c6029205aeb3d573d6042a6ae7ff5.tar.gz
blog-6ae65c23958c6029205aeb3d573d6042a6ae7ff5.tar.bz2
blog-6ae65c23958c6029205aeb3d573d6042a6ae7ff5.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.md30
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
-~~~