diff options
| author | hukl <hukl@eight.local> | 2009-02-01 14:40:38 +0100 |
|---|---|---|
| committer | hukl <hukl@eight.local> | 2009-02-01 14:40:38 +0100 |
| commit | 9af049ad185865518077a60bd6cbb016c22d1a9b (patch) | |
| tree | f437738fe31a7c368553f1a0210fda047e6a28ce /app/helpers | |
| parent | d1f7fa66043bba01aea105637d21017124d061fd (diff) | |
split up the rendering a bit
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/content_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb index 3199604..0e1df66 100644 --- a/app/helpers/content_helper.rb +++ b/app/helpers/content_helper.rb | |||
| @@ -1,2 +1,8 @@ | |||
| 1 | module ContentHelper | 1 | module ContentHelper |
| 2 | |||
| 3 | # | ||
| 4 | def date_for_page page | ||
| 5 | page.published_at.to_s(:db) rescue page.created_at.to_s(:db) | ||
| 6 | end | ||
| 7 | |||
| 2 | end | 8 | end |
