Sha256: 35b35d83454093651861ded14df6f4aaac8fe1948dfb033b444611acb9d8beff

Contents?: true

Size: 213 Bytes

Versions: 14

Compression:

Stored size: 213 Bytes

Contents

class EditableShortText < EditableElement

  ## fields ##
  field :content

  ## methods ##

  def content
    self.read_attribute(:content).blank? ? self.default_content : self.read_attribute(:content)
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta.2 app/models/editable_short_text.rb
locomotive_cms-1.0.0.beta app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta12 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta11 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta10 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta9 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta8 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta7 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta5 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta4 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta3 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta2 app/models/editable_short_text.rb
locomotive_cms-0.0.4.beta1 app/models/editable_short_text.rb
locomotive_cms-0.0.4 app/models/editable_short_text.rb