Skip to content

Commit

Permalink
Update Pagy:: Backend comment (#745)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Koshy <[email protected]>
  • Loading branch information
leonvogt and benkoshy authored Nov 18, 2024
1 parent 0475ba4 commit 2013a80
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gem/lib/pagy/backend.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# See Pagy::Backend API documentation: https://ddnexus.github.io/pagy/docs/api/backend
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/backend.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/backend.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

class Pagy
# Define a few generic methods to paginate a collection out of the box,
# or any collection by overriding pagy_get_items and/or pagy_get_vars in your controller
# or any collection by overriding any of the `pagy_get_*` methods in your controller.
# See also the extras if you need specialized methods to paginate Arrays or other collections
module Backend
private
Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/arel.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/arel
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/arel.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/arel.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

class Pagy # :nodoc:
# Better performance of grouped ActiveRecord collections
Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/array.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/array
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/array.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/array.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

class Pagy # :nodoc:
# Paginate arrays efficiently, avoiding expensive array-wrapping and without overriding
Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/calendar.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/calendar
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/calendar.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/calendar.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

require_relative '../calendar'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/countless.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/countless
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/countless.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/countless.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

require_relative '../countless'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/elasticsearch_rails.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/elasticsearch_rails
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/elasticsearch_rails.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/elasticsearch_rails.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

class Pagy # :nodoc:
DEFAULT[:elasticsearch_rails_search] ||= :search
Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/headers.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/headers
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/headers.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/headers.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

require_relative '../url_helpers'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/jsonapi.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/jsonapi
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/jsonapi.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/jsonapi.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

require_relative '../url_helpers'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/keyset.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/keyset
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/keyset.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/keyset.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

require_relative '../keyset'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/limit.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/limit
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

Check failure on line 3 in gem/lib/pagy/extras/limit.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.2 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

Check failure on line 3 in gem/lib/pagy/extras/limit.rb

View workflow job for this annotation

GitHub Actions / Ruby 3.3 Test

Layout/EmptyLineAfterMagicComment: Add an empty line after magic comments.

require_relative 'js_tools'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/meilisearch.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/meilisearch
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

class Pagy # :nodoc:
DEFAULT[:meilisearch_search] ||= :ms_search
Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/metadata
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

require_relative '../url_helpers'

Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/searchkick.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/searchkick
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

class Pagy # :nodoc:
DEFAULT[:searchkick_search] ||= :search
Expand Down
1 change: 1 addition & 0 deletions gem/lib/pagy/extras/size.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See the Pagy documentation: https://ddnexus.github.io/pagy/docs/extras/size
# frozen_string_literal: true
# You can override any of the `pagy_*` methods in your controller.

class Pagy # :nodoc:
# Implement the legacy bar using the array size.
Expand Down

0 comments on commit 2013a80

Please sign in to comment.