Class: Spina::Parts::RepeaterContent

Inherits:
Base
  • Object
show all
Includes:
AttrJson::NestedAttributes, Spina::Partable
Defined in:
app/models/spina/parts/repeater_content.rb

Instance Attribute Summary

Attributes included from Spina::Partable

#view_context

Attributes inherited from Base

#hint, #item_name, #title

Instance Method Summary collapse

Methods inherited from Base

#content, #label

Instance Method Details

#find_part(name) ⇒ Object



10
11
12
# File 'app/models/spina/parts/repeater_content.rb', line 10

def find_part(name)
  (parts || []).find { |part| part.name.to_s == name.to_s }
end