Sha256: 20627a00351386c3645fc7890af062eb6e1f7212570f2d05a946228eeda76729
Contents?: true
Size: 349 Bytes
Versions: 7
Compression:
Stored size: 349 Bytes
Contents
require "jabe/engine" module Jabe module PublicEntryUrl def self.included( base ) base.send(:helper_method, :public_entry_url) if base.respond_to?(:helper_method) end def public_entry_url(entry) "//#{SETTINGS.host_name}#{root_path}#{entry.published_at.in_time_zone.to_s(:url_part)}/#{entry.to_param}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
jabe-0.7.0 | lib/jabe.rb |
jabe-0.6.5 | lib/jabe.rb |
jabe-0.6.4 | lib/jabe.rb |
jabe-0.6.3 | lib/jabe.rb |
jabe-0.6.2 | lib/jabe.rb |
jabe-0.6.1 | lib/jabe.rb |
jabe-0.6.0 | lib/jabe.rb |