Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
only require fog and define interpolation when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn authored and Jon Yurek committed Apr 6, 2011
1 parent f768cc2 commit 37e5e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paperclip/storage/fog.rb
Expand Up @@ -8,7 +8,7 @@ def self.extended base
rescue LoadError => e
e.message << " (You may need to install the fog gem)"
raise e
end
end unless defined?(Fog)

base.instance_eval do
@fog_directory = @options[:fog_directory]
Expand All @@ -19,7 +19,7 @@ def self.extended base
@url = ':fog_public_url'
Paperclip.interpolates(:fog_public_url) do |attachment, style|
attachment.public_url(style)
end
end unless Paperclip::Interpolations.respond_to? :fog_public_url
end
end

Expand Down

0 comments on commit 37e5e5f

Please sign in to comment.