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