Sha256: 97a5d360fe0d59bcdfecc6e5c2c059b59c268e5fca9eabfdf477271d6807be27
Contents?: true
Size: 342 Bytes
Versions: 8
Compression:
Stored size: 342 Bytes
Contents
module Kms module Permalinkable extend ActiveSupport::Concern # Entity should respond to "slug" def permalink templatable_page = Kms::Page.where(templatable_type: self.class.name).first if templatable_page Pathname.new(templatable_page.parent.fullpath).join(self.slug.to_s).to_s end end end end
Version data entries
8 entries across 8 versions & 1 rubygems