4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/helpers/rails_imager/images_helper.rb', line 4
def rails_imager_p(path, args = {})
path = path_from_arg(path)
if args.delete(:url)
newpath = "#{request.protocol}#{request.host_with_port}"
elsif args.delete(:mailer)
newpath = mailer_pre_path
else
newpath = ""
end
check_arguments(args)
newpath << "/rails_imager/images/"
newpath << path
if args && args.any?
newpath << "?"
newpath << url_encoded_arguments(args)
end
return newpath
end
|