stylistic change
This commit is contained in:
parent
c7922c4a35
commit
91d0d39569
|
@ -5,7 +5,7 @@ module Middleman
|
||||||
module Pagination
|
module Pagination
|
||||||
module ArrayHelpers
|
module ArrayHelpers
|
||||||
def per_page(per_page)
|
def per_page(per_page)
|
||||||
return enum_for(:per_page, per_page) unless block_given?
|
return to_enum(__method__, per_page) unless block_given?
|
||||||
|
|
||||||
parts = if per_page.respond_to? :call
|
parts = if per_page.respond_to? :call
|
||||||
per_page.call(dup)
|
per_page.call(dup)
|
||||||
|
|
Loading…
Reference in a new issue