Sha256: 55d6b8843d8ccd7bdf3d13f9a6392c3743d3ce09a90324619e0d274bba6c2bb4
Contents?: true
Size: 390 Bytes
Versions: 17
Compression:
Stored size: 390 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
17 entries across 17 versions & 2 rubygems