Preserve source location of the tag helpers
This commit is contained in:
parent
7a4dbeb7df
commit
2ddb2563ed
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue