Sha256: d47a90910ac88f894cc8884ad843979f7cd1052bede48373ac361fec56457b8f
Contents?: true
Size: 463 Bytes
Versions: 54
Compression:
Stored size: 463 Bytes
Contents
module Para module ModelFieldParsers class Redactor < Para::ModelFieldParsers::Base register :redactor, self def parse! %w(content description).each do |field_name| field = fields_hash[field_name] if field && field.type == :text fields_hash[field_name] = Para::AttributeField::Redactor.new( field.model, name: field_name ) end end end end end end
Version data entries
54 entries across 54 versions & 1 rubygems