Sha256: b52bdac88db7c69f4af3568873498b54e81b00d3d8032a3079e3b25f61645f04
Contents?: true
Size: 562 Bytes
Versions: 3
Compression:
Stored size: 562 Bytes
Contents
module Locomotive::Steam class EditableElement include Locomotive::Steam::Models::Entity attr_accessor :page def initialize(attributes = {}) super({ block: nil, content: nil, source: nil, inline_editing: true }.merge(attributes)) end def source self[:source].blank? ? self.content : self[:source] end def format self[:format] || 'html' # only editable_text elements end def default_content? self.content.blank? end end end
Version data entries
3 entries across 3 versions & 1 rubygems