Class: Locomotive::EditableTextPresenter
- Inherits:
-
EditableElementPresenter
- Object
- BasePresenter
- EditableElementPresenter
- Locomotive::EditableTextPresenter
- Defined in:
- app/presenters/locomotive/editable_text_presenter.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
-
#content ⇒ Object
properties ##.
-
#default_content=(value) ⇒ Object
other getters / setters ##.
-
#set_attributes ⇒ Object
callbacks ##.
Methods inherited from EditableElementPresenter
#block_name, #label, #slug, #type
Methods inherited from BasePresenter
#_id, #ability?, #after_initialize, #errors, #formatted_time, getters_or_setters_to_hash, getters_to_hash, #html_view?, #include_errors?, setters_to_hash, #site, #true
Methods included from Presentable
#after_initialize, #as_json, #attributes=, #getters, #initialize, #property_options, #setters
Instance Method Details
#content ⇒ Object
properties ##
5 |
# File 'app/presenters/locomotive/editable_text_presenter.rb', line 5 properties :content, :default_content |
#default_content=(value) ⇒ Object
other getters / setters ##
14 15 16 |
# File 'app/presenters/locomotive/editable_text_presenter.rb', line 14 def default_content=(value) @default_content = value end |
#set_attributes ⇒ Object
callbacks ##
10 |
# File 'app/presenters/locomotive/editable_text_presenter.rb', line 10 set_callback :set_attributes, :after, :set_default_content |