Sha256: 38388f230f9f2471c4d47794818d8603713e91bc7eff5d475000a70d58918550
Contents?: true
Size: 435 Bytes
Versions: 197
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true if defined?(ActionText::Attribute) ActionText::Attribute::ClassMethods.prepend(Module.new do # rubocop:disable Naming/PredicateName def has_rich_text(*args) super name = args.first alias_method :"#{name}_body=", :"#{name}=" define_method(:"#{name}_body") do send(name).body&.to_trix_html end end # rubocop:enable Naming/PredicateName end) end
Version data entries
197 entries across 197 versions & 7 rubygems