Class: Alchemy::Admin::PictureDescriptionSelect
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alchemy::Admin::PictureDescriptionSelect
- Defined in:
- app/components/alchemy/admin/picture_description_select.rb
Instance Method Summary collapse
-
#initialize(url:, selected:, name_prefix:) ⇒ PictureDescriptionSelect
constructor
A new instance of PictureDescriptionSelect.
- #render? ⇒ Boolean
Constructor Details
#initialize(url:, selected:, name_prefix:) ⇒ PictureDescriptionSelect
Returns a new instance of PictureDescriptionSelect.
14 15 16 17 18 |
# File 'app/components/alchemy/admin/picture_description_select.rb', line 14 def initialize(url:, selected:, name_prefix:) @url = url @selected = selected @name_prefix = name_prefix end |
Instance Method Details
#render? ⇒ Boolean
20 21 22 |
# File 'app/components/alchemy/admin/picture_description_select.rb', line 20 def render? Alchemy::Language.published.many? end |