Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. # Place this in the config block on config/application.rb of your Rails application.
  2.  
  3. # Override where dragonfly keeps your images and its url format
  4. config.to_prepare do
  5. ::Dragonfly[:images].configure do |c|
  6. c.datastore.root_path = Rails.root.join('public', 'assets', 'images').to_s
  7. c.url_format = '/assets/images/:job/:basename.:format'
  8. end
  9. end
  10.  
  11. # Override where dragonfly keeps your files and its url format
  12. config.to_prepare do
  13. ::Dragonfly[:resources].configure do |c|
  14. c.datastore.root_path = Rails.root.join('public', 'assets', 'resources').to_s
  15. c.url_format = '/assets/resources/:job/:basename.:format'
  16. end
  17. end
Add Comment
Please, Sign In to add comment