Module: ZenPub

Extended by:
ActiveSupport::Concern
Defined in:
lib/zen_pub.rb,
lib/zen_pub/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#to_verbose_paramObject

overridden



12
13
14
15
16
17
18
# File 'lib/zen_pub.rb', line 12

def to_verbose_param  # overridden
  if published?
    "#{self.published_at.year}/#{self.published_at.month}/#{self.published_at.day}/#{self.to_param}"
  else
    self.to_param
  end
end