{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/2d08888994d584fa14de3f3580c720b5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"2d08888994d584fa14de3f3580c720b5","url":"https://api.github.com/users/vespisti99","login":"vespisti99","id":920183},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-29T16:14:47Z","closed_at":"2011-10-29T16:14:47Z","comments":1,"url":"https://api.github.com/repos/ai/r18n/issues/33","body":"Hi, \r\n\r\nwhen using r18n in combination with mongoid theres an error.\r\n\r\nUsing this code:\r\n\r\n```ruby\r\nrequire 'sinatra'\r\nrequire 'sinatra/r18n'\r\nrequire 'mongoid'\r\n\r\nget '/warning' do\r\n  t.warning\r\nend\r\n```\r\ni get that error\r\n\r\n> TypeError at /warning\r\n> can't convert Pathname to String\r\n\r\nit works perfectly while commenting out \"require 'mongoid'\"","html_url":"https://github.com/ai/r18n/issues/33","title":"r18n and mongoid","number":33,"id":1236200,"created_at":"2011-07-16T22:06:52Z"},"action":"closed"}