lib/gon/compatibility/old_rails.rb in gon-6.2.1 vs lib/gon/compatibility/old_rails.rb in gon-6.3.1

- old
+ new

@@ -1,10 +1,11 @@ require 'securerandom' class Gon - module GonHelpers + module ControllerHelpers private + # override this since ActionDispatch::Request#uuid appears only in Rails 3.2.1 def gon_request_uuid @gon_request_uuid ||= SecureRandom.uuid end end end