lib/searchgasm/config/helpers.rb in searchgasm-1.5.0 vs lib/searchgasm/config/helpers.rb in searchgasm-1.5.1
- old
+ new
@@ -63,10 +63,21 @@
def order_by_link_desc_indicator
@order_by_link_desc_indicator ||= " ▼"
end
attr_writer :order_by_link_desc_indicator
+ # The class name used in order_by_links for the link that it is currently ordering by
+ #
+ # * <tt>Default:</tt> "# The class name for used in the page_link helper
+ #
+ # * <tt>Default:</tt> "page"
+ # * <tt>Accepts:</tt> String
+ def order_by_links_ordering_by_class_name
+ @order_by_links_ordering_by_class_name ||= "ordering_by"
+ end
+ attr_writer :order_by_links_ordering_by_class_name
+
# The class name for used in the order_by_select helper
#
# * <tt>Default:</tt> "order_by"
# * <tt>Accepts:</tt> String
def order_by_select_class_name
@@ -220,10 +231,10 @@
# * <tt>Default:</tt> [["10 per page", 10], ["25 per page", 25], ["50 per page", 50], ["100 per page", 100], ["150 per page", 150], ["200 per page", 200], ["Show all", nil]]
# * <tt>Accepts:</tt> Array
def per_page_select_choices
return @per_page_select_choices if @per_page_select_choices
@per_page_select_choices = []
- [10, 25, 50, 100, 150, 200].each { |choice| @per_page_select_choices << ["#{choice} per page", 25] }
+ [10, 25, 50, 100, 150, 200].each { |choice| @per_page_select_choices << ["#{choice} per page", choice] }
@per_page_select_choices << ["Show all", nil]
end
attr_writer :per_page_select_choices
# The class name for used in the per_page_select helper
\ No newline at end of file