"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/models/attachment.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

attachment.rb  (redmine-4.0.3):attachment.rb  (redmine-4.0.4)
skipping to change at line 238 skipping to change at line 238
end end
# Deletes all thumbnails # Deletes all thumbnails
def self.clear_thumbnails def self.clear_thumbnails
Dir.glob(File.join(thumbnails_storage_path, "*.thumb")).each do |file| Dir.glob(File.join(thumbnails_storage_path, "*.thumb")).each do |file|
File.delete file File.delete file
end end
end end
def is_text? def is_text?
Redmine::MimeType.is_type?('text', filename) Redmine::MimeType.is_type?('text', filename) || Redmine::SyntaxHighlighting. filename_supported?(filename)
end end
def is_image? def is_image?
Redmine::MimeType.is_type?('image', filename) Redmine::MimeType.is_type?('image', filename)
end end
def is_diff? def is_diff?
self.filename =~ /\.(patch|diff)$/i self.filename =~ /\.(patch|diff)$/i
end end
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)