1
0
Fork 0
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:
Akira Matsuda 2011-02-07 00:10:39 +09:00
parent 2e406a7bcc
commit 20484f9c02
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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