lib/active_admin/views/components/paginated_collection.rb in activeadmin-1.0.0.pre5 vs lib/active_admin/views/components/paginated_collection.rb in activeadmin-1.0.0

- old
+ new

@@ -69,22 +69,17 @@ div id: "index_footer" do build_per_page_select if @per_page.is_a?(Array) build_pagination div(page_entries_info(options).html_safe, class: "pagination_information") - download_links = @download_links.is_a?(Proc) ? instance_exec(&@download_links) : @download_links - - if download_links.is_a?(Array) && !download_links.empty? - build_download_format_links download_links - else - build_download_format_links unless download_links == false - end + formats = build_download_formats @download_links + build_download_format_links formats if formats.any? end end def build_per_page_select div class: "pagination_per_page" do - text_node "Per page:" + text_node I18n.t("active_admin.pagination.per_page") select do @per_page.each do |per_page| option( per_page, value: per_page,