Sha256: fd3a3d0858fa17c2609f6329083ecf11c202fc51d0780dfa85969b60d850bd6d
Contents?: true
Size: 349 Bytes
Versions: 3
Compression:
Stored size: 349 Bytes
Contents
module SlugHelper def slug_path(content) if content.respond_to?(:slug) slug_engine.permalink_path(content.slug) else polymorphic_path(content) end end def slug_url(content) if content.respond_to?(:slug) slug_engine.permalink_url(content.slug) else polymorphic_url(content) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slug-engine-0.1.0 | app/helpers/slug_helper.rb |
slug-engine-0.0.3 | app/helpers/slug_helper.rb |
slug-engine-0.0.2 | app/helpers/slug_helper.rb |