Myself, I'd prefer using more horizontal space.
```ruby
@per_page = resource_class.default_per_page if resource_class.respond_to? :default_per_page
@per_page = namespace.default_per_page      if @per_page.nil? || @per_page == 0
```