the rescue wasn't trying the name, causing private method call exceptions
This commit is contained in:
parent
adbae00457
commit
74277b48ed
@ -39,10 +39,10 @@ module Locomotive
|
||||
|
||||
element = current_page.find_editable_element(context['block'].try(:name), @slug)
|
||||
|
||||
if element
|
||||
if element.present?
|
||||
render_element(context, element)
|
||||
else
|
||||
Locomotive.logger "[editable element] missing element #{context[:block].name} / #{@slug}"
|
||||
Locomotive.logger "[editable element] missing element `#{context['block'].try(:name)}` / #{@slug} on #{current_page.fullpath}"
|
||||
''
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user