module ZenPub

Constants

VERSION

Public Instance Methods

to_verbose_param() click to toggle source
# 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

Private Instance Methods

set_published_at() click to toggle source
# File lib/zen_pub.rb, line 22
def set_published_at
  self.published_at = Time.new unless self.published_at_changed?
end