Class: Locomotive::EditableControlPresenter
- Inherits:
-
EditableElementPresenter
- Object
- BasePresenter
- EditableElementPresenter
- Locomotive::EditableControlPresenter
- Defined in:
- app/presenters/locomotive/editable_control_presenter.rb
Instance Attribute Summary
Attributes inherited from BasePresenter
Instance Method Summary collapse
-
#content ⇒ Object
properties ##.
-
#options ⇒ Object
other getters / setters ##.
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 ##
6 |
# File 'app/presenters/locomotive/editable_control_presenter.rb', line 6 property :content |
#options ⇒ Object
other getters / setters ##
11 12 13 14 15 16 |
# File 'app/presenters/locomotive/editable_control_presenter.rb', line 11 def self.__source..map do |option| option['selected'] = option['value'] == self.__source.content option end end |