mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
07533a3d2f
This change introduces a rich text object to make it easier to confirm it context is existing or not. If we have a class like below. class Information < ApplicationRecord has_rich_text :notes end Before: i = Information.new i.notes? => NoMethodError i.notes = "Some sample text" i.notes.present? => true After: i = Information.new i.notes? => false i.notes = "Some sample text" i.notes? => true |
||
---|---|---|
.. | ||
attachables | ||
attachments | ||
attachable.rb | ||
attachment.rb | ||
attachment_gallery.rb | ||
attribute.rb | ||
content.rb | ||
engine.rb | ||
fragment.rb | ||
gem_version.rb | ||
html_conversion.rb | ||
plain_text_conversion.rb | ||
serialization.rb | ||
system_test_helper.rb | ||
trix_attachment.rb | ||
version.rb |