Permalink
Browse files

Renamed text_asset as text_asset_extensions. However, there is a prob…

…lem when loading this module into Javascript and Stylesheet extensions: one of the modules is caused to not load properly.
  • Loading branch information...
1 parent 28ce173 commit c6f5428df0614921ce9e249835e14f847bc0065e @nelstrom committed Nov 11, 2008
Showing with 0 additions and 22 deletions.
  1. +0 −22 lib/file_system/model/text_asset.rb
@@ -1,22 +0,0 @@
-module TextAsset
- def filename
- @filename ||= returning String.new do |output|
- basename = self.name
- extension = case
- when respond_to?(:filter_id)
- self.filter_id.blank? ? default_content_type : self.filter_id.downcase
- when respond_to?(:content_type)
- CONTENT_TYPES.invert[self.content_type] || default_content_type
- else
- default_content_type
- end
- minify = case
- when respond_to?(:minify)
- self.minify ? "min" : nil
- else nil
- end
- output << File.join(self.class.path,
- [basename, minify, extension].compact.join("."))
- end
- end
-end

0 comments on commit c6f5428

Please sign in to comment.