app/helpers/alchemy/admin/contents_helper.rb in alchemy_cms-4.6.7 vs app/helpers/alchemy/admin/contents_helper.rb in alchemy_cms-5.0.0.beta1

- old
+ new

@@ -11,21 +11,21 @@ # # Displays a mandatory field indicator, if the content has validations. # def render_content_name(content) if content.blank? - warning('Content is nil') + warning("Content is nil") return end content_name = content.name_for_label if content.definition.blank? warning("Content #{content.name} is missing its definition") icon = hint_with_tooltip( - Alchemy.t(:content_definition_missing) + Alchemy.t(:content_definition_missing), ) content_name = "#{icon} #{content_name}".html_safe end @@ -37,10 +37,10 @@ end # Renders the label and a remove link for a content. def content_label(content) content_tag :label, for: content.form_field_id do - [render_hint_for(content), render_content_name(content)].compact.join(' ').html_safe + [render_hint_for(content), render_content_name(content)].compact.join(" ").html_safe end end end end end