This should be re-written as:
```ruby
@per_page = resource_class.respond_to?(:default_per_page) ?
  resource_class.default_per_page : namespace.default_per_page
```