Module: Locomotive::Concerns::Page::EditableElements

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
app/models/locomotive/concerns/page/editable_elements.rb

Instance Method Summary collapse

Instance Method Details

#find_editable_element(block, slug) ⇒ Object


14
15
16
# File 'app/models/locomotive/concerns/page/editable_elements.rb', line 14

def find_editable_element(block, slug)
  self.editable_elements.detect { |el| el.block == block && el.slug == slug }
end