Skip to content

Commit

Permalink
ocd
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb committed Jun 3, 2015
1 parent 5e69d3d commit 91f7918
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/filterer/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ def initialize(params = {}, opts = {})
add_params_to_query
order_results unless opts[:skip_ordering]
paginate_results unless opts[:skip_pagination]

# Add custom meta data if we've defined the method
# @meta.merge!(self.custom_meta_data) if self.respond_to?(:custom_meta_data)
end

def defaults
Expand Down Expand Up @@ -131,7 +128,7 @@ def order_results

def per_page
if self.class.allow_per_page_override && params[:per_page].present?
[params[:per_page], self.per_page_max].min
[params[:per_page], per_page_max].min
else
self.class.per_page
end
Expand Down

0 comments on commit 91f7918

Please sign in to comment.