This project is archived and is in readonly mode.
private method `split' called for #<Mime::Type:0x226f618>
-
ihunter
- Tag cleared.
-
Bodaniel Jeanes
I am getting this as well. However, I get it when performing XHR requests even for non-vendored Rails on 2.3.2
+1
-
ian (at cocodot)
I found a temporary workaround, not sure if it's correct but it works in my case:
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets...
Just add:
module Mime
class Type
def split(*args) to_s.split(*args) endend
end
to a config/initializers class file.
HTH, ian
-
amanfredi (at gmail)
I believe this is the same as https://rails.lighthouseapp.com/projects/8994/tickets/2658-internal...
-
laserlemon
I prefer:
class Mime::Type delegate :split, :to => :to_s end