Skip to content

Commit

Permalink
Remove module_eval since is public since 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalette authored and Mathew Allen committed Sep 23, 2016
1 parent c1ae008 commit a550d77
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/turbograft.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ def referer
end

ActiveSupport.on_load(:action_view) do
(ActionView::RoutingUrlFor rescue ActionView::Helpers::UrlHelper).module_eval do
prepend XHRUrlFor
end
end unless RUBY_VERSION =~ /^1\.8/
(ActionView::RoutingUrlFor rescue ActionView::Helpers::UrlHelper).prepend(XHRUrlFor)
end
end
end
end

0 comments on commit a550d77

Please sign in to comment.