Skip to content

Commit

Permalink
Moving cctray mime type to mime types initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
mrduncan committed Sep 6, 2009
1 parent 3cd7c27 commit 302c8bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions config/environment.rb
Expand Up @@ -62,9 +62,6 @@ def find_home
require 'date'
require 'fileutils'

# custom MIME type for CCTray application
Mime::Type.register "application/cctray", :cctray

# get rid of cached pages between runs
FileUtils.rm_rf RAILS_ROOT + "/public/builds"
FileUtils.rm_rf RAILS_ROOT + "/public/documentation"
Expand Down
3 changes: 3 additions & 0 deletions config/initializers/mime_types.rb
Expand Up @@ -3,3 +3,6 @@
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone

# custom MIME type for CCTray application
Mime::Type.register "application/cctray", :cctray

0 comments on commit 302c8bb

Please sign in to comment.