-
Kyohei Toyoda authored
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
Kyohei Toyoda authoredThis 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
Loading