Skip to content

Commit

Permalink
Not parameterize filename of uploaded file
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Li committed May 10, 2017
1 parent b3784c5 commit 89dd51e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ext/string.rb
Expand Up @@ -94,7 +94,7 @@ def cama_fix_slash
end

def cama_fix_filename
"#{File.basename(self, File.extname(self)).downcase.gsub(" ", "-").parameterize}#{File.extname(self)}"
"#{File.basename(self, File.extname(self)).downcase.gsub(" ", "-")}#{File.extname(self)}"
end

# return cleaned model class name
Expand Down Expand Up @@ -143,4 +143,4 @@ def cama_log_style(color = :red)
colors = {red: 31, green: 32, blue: 34, pink: 35, light_blue: 36, yellow: 33}
"\e[#{colors[color]}m#{self}\e[0m"
end
end
end

0 comments on commit 89dd51e

Please sign in to comment.