14 lines
251 B
Ruby
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 |