Module: Paperclip::Storage::Foggy
- Defined in:
- lib/paperclip/storage/foggy.rb,
lib/paperclip/storage/version.rb
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
22
23
24
|
# File 'lib/paperclip/storage/foggy.rb', line 22
def method_missing(method, *args)
@fog.send(method, *args)
end
|
Class Method Details
.extended(base) ⇒ Object
4
5
6
7
8
|
# File 'lib/paperclip/storage/foggy.rb', line 4
def self.extended(base)
base.instance_eval do
@fog = Attachment.new(base.name, base.instance, @options.merge(storage: :fog))
end
end
|
Instance Method Details
#fog_path(style_name = default_style) ⇒ Object
14
15
16
|
# File 'lib/paperclip/storage/foggy.rb', line 14
def fog_path(style_name = default_style)
@fog.path(style_name)
end
|
#path(style_name = default_style) ⇒ Object
10
11
12
|
# File 'lib/paperclip/storage/foggy.rb', line 10
def path(style_name = default_style)
Paperclip.io_adapters.for(short_expiring_url(style_name)).path
end
|
#url(style_name = default_style, options = {}) ⇒ Object
18
19
20
|
# File 'lib/paperclip/storage/foggy.rb', line 18
def url(style_name = default_style, options = {})
short_expiring_url(style_name)
end
|