diff --git a/config/initializers/will_paginate.rb b/config/initializers/will_paginate.rb new file mode 100644 index 0000000..dcbd81b --- /dev/null +++ b/config/initializers/will_paginate.rb @@ -0,0 +1,13 @@ +if defined?(WillPaginate) + module WillPaginate + module ActiveRecord + module RelationMethods + def per(value = nil) per_page(value) end + def total_count() count end + end + end + module CollectionMethods + alias_method :num_pages, :total_pages + end + end +end \ No newline at end of file diff --git a/lib/screenshot1.png b/lib/screenshot1.png new file mode 100644 index 0000000..d33c940 Binary files /dev/null and b/lib/screenshot1.png differ diff --git a/lib/screenshot2.png b/lib/screenshot2.png new file mode 100644 index 0000000..ba3ee0f Binary files /dev/null and b/lib/screenshot2.png differ diff --git a/lib/screenshot3.png b/lib/screenshot3.png new file mode 100644 index 0000000..d30c233 Binary files /dev/null and b/lib/screenshot3.png differ diff --git a/lib/screenshot4.png b/lib/screenshot4.png new file mode 100644 index 0000000..bf412a9 Binary files /dev/null and b/lib/screenshot4.png differ