Skip to content

Commit

Permalink
Add missing Pagy methods to application helper
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Feb 13, 2025
1 parent f970d7a commit 091a09f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module ApplicationHelper
include Pagy::Frontend

# Automagically fetch title from @title, content_for(:title), resource.to_title, or controller/action/title I18n lookup
def page_title
return @title unless @title.blank?
Expand Down

0 comments on commit 091a09f

Please sign in to comment.