mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
rename method
s/tagify/tagify_links/g
This commit is contained in:
parent
2e406a7bcc
commit
20484f9c02
2 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ module Kaminari
|
||||||
@left, @window, @right = (options[:left] || options[:outer_window] || 1), (options[:window] || options[:inner_window] || 4), (options[:right] || options[:outer_window] || 1)
|
@left, @window, @right = (options[:left] || options[:outer_window] || 1), (options[:window] || options[:inner_window] || 4), (options[:right] || options[:outer_window] || 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
def tagify
|
def tagify_links
|
||||||
num_pages, current_page, left, window, right = @options[:num_pages], @options[:current_page], @left, @window, @right
|
num_pages, current_page, left, window, right = @options[:num_pages], @options[:current_page], @left, @window, @right
|
||||||
|
|
||||||
tags = []
|
tags = []
|
||||||
|
@ -91,7 +91,7 @@ module Kaminari
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
suppress_logging_render_partial do
|
suppress_logging_render_partial do
|
||||||
@template.content_for :kaminari_paginator_tags, tagify.join("\n").html_safe
|
@template.content_for :kaminari_paginator_tags, tagify_links.join("\n").html_safe
|
||||||
Paginator.new(self).to_s
|
Paginator.new(self).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,9 +10,9 @@ describe 'Kaminari::Helpers::PaginationRenderer' do
|
||||||
end
|
end
|
||||||
r
|
r
|
||||||
end
|
end
|
||||||
describe '#tagify' do
|
describe '#tagify_links' do
|
||||||
def tags_with(options)
|
def tags_with(options)
|
||||||
PaginationRenderer.new(renderer, options).tagify
|
PaginationRenderer.new(renderer, options).tagify_links
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'first page' do
|
context 'first page' do
|
||||||
|
|
Loading…
Reference in a new issue