Skip to content

Commit

Permalink
to_s symbol for 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Aug 4, 2011
1 parent 2c888e8 commit 48b85f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sprockets/processing.rb
Expand Up @@ -268,11 +268,11 @@ def js_compressor=(compressor)

private
def add_engine_to_trail(ext, klass)
@trail.append_extension(ext)
@trail.append_extension(ext.to_s)

if klass.respond_to?(:default_mime_type) && klass.default_mime_type
if format_ext = extension_for_mime_type(klass.default_mime_type)
@trail.alias_extension(ext, format_ext)
@trail.alias_extension(ext.to_s, format_ext)
end
end
end
Expand Down

0 comments on commit 48b85f7

Please sign in to comment.