Class: Alchemy::Admin::PictureDescriptionSelect

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/alchemy/admin/picture_description_select.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


20
21
22
# File 'app/components/alchemy/admin/picture_description_select.rb', line 20

def render?
  Alchemy::Language.published.many?
end