lib/active_admin/views/title_bar.rb in activeadmin-1.0.0 vs lib/active_admin/views/title_bar.rb in activeadmin-1.1.0
- old
+ new
@@ -27,13 +27,13 @@
def build_breadcrumb(separator = "/")
breadcrumb_config = active_admin_config && active_admin_config.breadcrumb
links = if breadcrumb_config.is_a?(Proc)
- instance_exec(controller, &active_admin_config.breadcrumb)
- elsif breadcrumb_config.present?
- breadcrumb_links
- end
+ instance_exec(controller, &active_admin_config.breadcrumb)
+ elsif breadcrumb_config.present?
+ breadcrumb_links
+ end
return unless links.present? && links.is_a?(::Array)
span class: "breadcrumb" do
links.each do |link|
text_node link
span(separator, class: "breadcrumb_sep")