1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

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

View file

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