engine/app/models/editable_short_text.rb

12 lines
213 B
Ruby

class EditableShortText < EditableElement
## fields ##
field :content
## methods ##
def content
self.read_attribute(:content).blank? ? self.default_content : self.read_attribute(:content)
end
end