Skip to content

Commit

Permalink
Removed selfs from resource model.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed Dec 31, 2010
1 parent 6b0e709 commit fdf6e23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/app/models/resource.rb
Expand Up @@ -28,13 +28,13 @@ def self.per_page(dialog = false)

# used for searching
def type_of_content
self.mime_type.split("/").join(" ")
mime_type.split("/").join(" ")
end

# Returns a titleized version of the filename
# my_file.pdf returns My File
def title
CGI::unescape(self.file_name.to_s).gsub(/\.\w+$/, '').titleize
CGI::unescape(file_name.to_s).gsub(/\.\w+$/, '').titleize
end

end

0 comments on commit fdf6e23

Please sign in to comment.