Sha256: f6e09221c7ae99bb6ecd0d0246f480ddb82d95d696c537465f2cdbae6d724daf

Contents?: true

Size: 213 Bytes

Versions: 6

Compression:

Stored size: 213 Bytes

Contents

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

  def public_entry_url(entry)
    "#{SETTINGS.site_url}/#{public_entry_url(entry)}"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jabe-0.5.6 app/helpers/jabe_helper.rb
jabe-0.5.5 app/helpers/jabe_helper.rb
jabe-0.5.4 app/helpers/jabe_helper.rb
jabe-0.5.3 app/helpers/jabe_helper.rb
jabe-0.5.2 app/helpers/jabe_helper.rb
jabe-0.5.1 app/helpers/jabe_helper.rb