Sha256: 12c765fa2c8f5799d79c2b0a6e7162e4d3175cf135e79d3f334d05bee898aa1f

Contents?: true

Size: 226 Bytes

Versions: 2

Compression:

Stored size: 226 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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jabe-0.5.8 app/helpers/jabe_helper.rb
jabe-0.5.7 app/helpers/jabe_helper.rb