module NavigationHelper # # [ # ['Users', user_path], # ['Roles'] # ] # def breadcrumb Array(@breadcrumb).collect{|item| item.is_a?(Array) ? link_to(*item) : item} end def breadcrumb? breadcrumb.empty? end end