engine/app/models/locomotive/editable_short_text.rb

14 lines
251 B
Ruby

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