Michel Loiseleur
2009-Sep-26 15:25 UTC
[Ovirt-devel] [PATCH] fixes rails launch when a rack gem is present on the system
Signed-off-by: Michel Loiseleur <mloiseleur at linagora.com> --- src/config/initializers/mime_types.rb | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/config/initializers/mime_types.rb b/src/config/initializers/mime_types.rb index 72aca7e..826051b 100644 --- a/src/config/initializers/mime_types.rb +++ b/src/config/initializers/mime_types.rb @@ -3,3 +3,9 @@ # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf # Mime::Type.register_alias "text/html", :iphone + +# Workaround for rack gem + rails gem 2.3.2 on a same machine +# See https://rails.lighthouseapp.com/projects/8994/tickets/2784-private-method-split-called-for-mimetype0x226f618 +class Mime::Type + delegate :split, :to => :to_s +end -- 1.6.2.5
Mohammed Morsi
2009-Oct-14 19:04 UTC
[Ovirt-devel] [PATCH] fixes rails launch when a rack gem is present on the system
Michel Loiseleur wrote:> Signed-off-by: Michel Loiseleur <mloiseleur at linagora.com> > --- > src/config/initializers/mime_types.rb | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/src/config/initializers/mime_types.rb b/src/config/initializers/mime_types.rb > index 72aca7e..826051b 100644 > --- a/src/config/initializers/mime_types.rb > +++ b/src/config/initializers/mime_types.rb > @@ -3,3 +3,9 @@ > # Add new mime types for use in respond_to blocks: > # Mime::Type.register "text/richtext", :rtf > # Mime::Type.register_alias "text/html", :iphone > + > +# Workaround for rack gem + rails gem 2.3.2 on a same machine > +# See https://rails.lighthouseapp.com/projects/8994/tickets/2784-private-method-split-called-for-mimetype0x226f618 > +class Mime::Type > + delegate :split, :to => :to_s > +end >ACK and pushed. Thanks for this. -Mo