aboutsummaryrefslogtreecommitdiff
path: root/plugins/date.rb
diff options
context:
space:
mode:
authorAndreas Renberg (IQAndreas) <iq_andreas@hotmail.com>2013-11-18 05:05:00 +0100
committerAndreas Renberg (IQAndreas) <iq_andreas@hotmail.com>2013-11-18 05:05:00 +0100
commit408cade21f44e922819871f02aa8bbc781f97ffc (patch)
treecc8ea3f245be91b173c35894a3e8f6aca7691d1d /plugins/date.rb
parent797aeb50744fb72444a569a56818126740cd9f36 (diff)
downloadmy_new_personal_website-408cade21f44e922819871f02aa8bbc781f97ffc.tar.xz
my_new_personal_website-408cade21f44e922819871f02aa8bbc781f97ffc.zip
Rename 'data' to 'date_attributes'
Prevents ambiguity, since there is already a `date` property defined in the instance.
Diffstat (limited to 'plugins/date.rb')
-rw-r--r--plugins/date.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/date.rb b/plugins/date.rb
index 24607ef8..01d94737 100644
--- a/plugins/date.rb
+++ b/plugins/date.rb
@@ -45,10 +45,10 @@ module Octopress
# Returns the date-specific liquid attributes
def liquid_date_attributes
date_format = self.site.config['date_format']
- data = {}
- data['date_formatted'] = format_date(self.data['date'], date_format) if self.data.has_key?('date')
- data['updated_formatted'] = format_date(self.data['updated'], date_format) if self.data.has_key?('updated')
- data
+ date_attributes = {}
+ date_attributes['date_formatted'] = format_date(self.data['date'], date_format) if self.data.has_key?('date')
+ date_attributes['updated_formatted'] = format_date(self.data['updated'], date_format) if self.data.has_key?('updated')
+ date_attributes
end
end