app/models/activeadmin_selleo_cms/section.rb in activeadmin-selleo-cms-0.0.47 vs app/models/activeadmin_selleo_cms/section.rb in activeadmin-selleo-cms-0.0.48
- old
+ new
@@ -75,10 +75,10 @@
def to_s
section_definition = sectionable.layout.find_section(name) if sectionable and sectionable.respond_to? :layout
if section_definition
if section_definition.text?
- render_body
+ render
elsif section_definition.image?
image ? image.url : ""
end
end
end