Sha256: b92b782c0753a8b9d9d9acac4841fea1147455d74c4684816ceb844797e3e02e

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

module JabeHelper
  def public_entry_path(entry)
    "/#{entry.published_at.in_time_zone.to_s(:url_part)}/#{entry.to_param}"
  end

  def public_entry_url(entry)
    "#{SETTINGS.site_url}#{public_entry_path(entry)}"
  end
  
  def default_gravatar_url
    "#{request.protocol}#{request.host_with_port}/images/gravatar.gif"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jabe-0.5.9 app/helpers/jabe_helper.rb