lib/fish0/paginator.rb in fish0-0.0.1 vs lib/fish0/paginator.rb in fish0-0.0.2

- old
+ new

@@ -4,10 +4,10 @@ delegate :each, :all, :skip, :limit, :padding, to: :collection attr_reader :collection def initialize(collection, page_number: 1, per_page: 22, padding: 0) - @collection = collection || (fail ArgumentError) + @collection = collection || (raise ArgumentError) @per = per_page @page = page_number - 1 @padding = padding per(per_page) page(page_number)