Module: Pagination::CurrentPageForHelper

Instance Method Summary collapse

Instance Method Details

#pagination_current_page_for(set) ⇒ Object



5
6
7
# File 'lib/action_set/helpers/pagination/current_page_for_helper.rb', line 5

def pagination_current_page_for(set)
  set.instructions.dig(:paginate, :page)
end