diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-02-02 00:21:03 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-02-02 00:21:03 +0000 |
commit | beca1f2e151558ded3d5a4efebd328ab2533edc6 (patch) | |
tree | d4a4f38597811c13b5b8cda254f008ca58473723 | |
parent | ed5fa2fe339e0aabde657ffdec24ac591d390d73 (diff) | |
download | rails-beca1f2e151558ded3d5a4efebd328ab2533edc6.tar.gz rails-beca1f2e151558ded3d5a4efebd328ab2533edc6.tar.bz2 rails-beca1f2e151558ded3d5a4efebd328ab2533edc6.zip |
Template#mime_type should not use Mime::Type when Action Controller is not included
-rw-r--r-- | actionpack/lib/action_view/template.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/template.rb b/actionpack/lib/action_view/template.rb index 1361a969a9..553158b82a 100644 --- a/actionpack/lib/action_view/template.rb +++ b/actionpack/lib/action_view/template.rb @@ -133,7 +133,7 @@ module ActionView #:nodoc: end def mime_type - Mime::Type.lookup_by_extension(format) if format + Mime::Type.lookup_by_extension(format) if format && defined?(::Mime) end memoize :mime_type |