Sha256: 090145fd2fe5c27528098d5fc4c00ef731b71e8fba2968cf4c715ff31c7af1bd

Contents?: true

Size: 271 Bytes

Versions: 2

Compression:

Stored size: 271 Bytes

Contents

module Mokio
  module Slugged
    def slug
      "/#{slug_prefix}/#{id}/#{slug_candidate.parameterize}"
    end
    def print_slug
      "#{slug}/print"
    end
    protected
    def slug_prefix
      "content"
    end
    def slug_candidate
      title
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mokio-0.0.11 lib/mokio/slugged.rb
mokio-0.0.10 lib/mokio/slugged.rb