app/models/alchemy/attachment.rb in alchemy_cms-2.1.4 vs app/models/alchemy/attachment.rb in alchemy_cms-2.1.5
- old
+ new
@@ -17,10 +17,10 @@
:per_page => per_page
).order(:name)
end
def urlname
- CGI.escape(read_attribute(:filename).split('.').first)
+ ::CGI.escape(read_attribute(:filename).split('.').first)
end
def extension
filename.split(".").last
end