lib/active_admin/views/components/site_title.rb in activeadmin-1.0.0.pre4 vs lib/active_admin/views/components/site_title.rb in activeadmin-1.0.0.pre5
- old
+ new
@@ -39,14 +39,14 @@
title_text
end
end
def title_text
- helpers.render_or_call_method_or_proc_on(self, @namespace.site_title)
+ helpers.render_or_call_method_or_proc_on(helpers, @namespace.site_title)
end
def title_image
- path = helpers.render_or_call_method_or_proc_on(self, @namespace.site_title_image)
+ path = helpers.render_or_call_method_or_proc_on(helpers, @namespace.site_title_image)
helpers.image_tag(path, id: "site_title_image", alt: title_text)
end
end