Sha256: b2631c11aed5b886f2e5faac6dd98254a5cea6e58f35d4f263e98c133c36a1f6
Contents?: true
Size: 430 Bytes
Versions: 7
Compression:
Stored size: 430 Bytes
Contents
class CmsTag::FieldString < CmsBlock include CmsTag def self.regex_tag_signature(label = nil) label ||= /\w+/ /\{\{\s*cms:field:(#{label}):?(?:string)?\s*\}\}/ end def regex_tag_signature self.class.regex_tag_signature(label) end def content=(value) write_attribute(:content_string, value) end def content read_attribute(:content_string) end def render '' end end
Version data entries
7 entries across 7 versions & 1 rubygems