Sha256: f0472c1559e8872155ad86b832879c24c4a88a115fd38fefa51f8ab4313d9ae0
Contents?: true
Size: 386 Bytes
Versions: 15
Compression:
Stored size: 386 Bytes
Contents
class CmsTag::Snippet < CmsSnippet include CmsTag def identifier "#{self.class.name.underscore}_#{self.slug}" end def self.regex_tag_signature(label = nil) label ||= /\w+/ /\{\{\s*cms:snippet:(#{label})\s*\}\}/ end def regex_tag_signature self.class.regex_tag_signature(label) end def content self.read_attribute(:content) end end
Version data entries
15 entries across 15 versions & 1 rubygems