loops icon indicating copy to clipboard operation
loops copied to clipboard

Fixes 'Unhandled exception: no implicit conversion of Pathname into S…

Open tonybyrne opened this issue 9 years ago • 0 comments

…tring (TypeError)' exception when running on Ruby 2.2.2.

I spotted the above issue after upgrading our Rails app to Ruby 2.2.2. Concatenating a Pathname to a String, no longer 'casts' the Pathname to a String. You either need to call Pathname#to_s, or use File#join. I opted for the latter - hope it helps.

tonybyrne avatar Jun 30 '15 09:06 tonybyrne