Preserve source location of the tag helpers

This commit is contained in:
Akira Matsuda 2016-11-07 12:45:46 +09:00
parent 7a4dbeb7df
commit 2ddb2563ed
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ module Kaminari
end end
%w[first_page prev_page next_page last_page gap].each do |tag| %w[first_page prev_page next_page last_page gap].each do |tag|
eval <<-DEF eval <<-DEF, nil, __FILE__, __LINE__ + 1
def #{tag}_tag def #{tag}_tag
@last = #{tag.classify}.new @template, @options @last = #{tag.classify}.new @template, @options
end end