5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/mongoid/paperclip/mobile/icon.rb', line 5
def has_mobile_web_icon(field, options={ })
if options[:styles]
Rails.logger.warn ":style option for has_mobile_web_icon :#{field} will be ignored."
end
opts = options.merge({
:styles => mobile_styles,
:default_url => placeholder_image_url("96x96", :text => "Missing")
})
unless self.ancestors.include?(::Mongoid::Paperclip)
include ::Mongoid::Paperclip
end
has_mongoid_attached_file(field, opts)
end
|