Skip to content

Commit

Permalink
Upgrade for Dragonfly 1.0
Browse files Browse the repository at this point in the history
Dragonfly::App[:refinery_resources] is deprecated - use Dragonfly.app (for the default app) or Dragonfly.app(:refinery_resources) (for extra named apps) instead.
Also, `content_disposition=' is no longer available in Dragonfly 1.0, we should use `response_header=` instead, see: https://github.com/markevans/dragonfly/wiki/Upgrading-from-0.9-to-1.0#misc-config-options
  • Loading branch information
duarme committed Dec 6, 2014
1 parent cd4f72c commit 33a397a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/guides/2 - Refinery Basics/9 - Resources.textile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ You can do this by making use of the after_inclusion hook refinery provides:
<ruby>
# config/application.rb
# refinery change content-disipotion
Refinery::Core::Engine.after_inclusion do
Refinery::Resource # force autoload
::Dragonfly[:refinery_resources].content_disposition = nil
Refinery::Core::Engine.after_inclusion do
Refinery::Resource # force autoload
::Dragonfly.app(:refinery_resources).response_header('Content-Disposition', nil)
end
end
</ruby>

Expand Down

0 comments on commit 33a397a

Please sign in to comment.