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