Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Place this in the config block on config/application.rb of your Rails application.
- # Override where dragonfly keeps your images and its url format
- config.to_prepare do
- ::Dragonfly[:images].configure do |c|
- c.datastore.root_path = Rails.root.join('public', 'assets', 'images').to_s
- c.url_format = '/assets/images/:job/:basename.:format'
- end
- end
- # Override where dragonfly keeps your files and its url format
- config.to_prepare do
- ::Dragonfly[:resources].configure do |c|
- c.datastore.root_path = Rails.root.join('public', 'assets', 'resources').to_s
- c.url_format = '/assets/resources/:job/:basename.:format'
- end
- end
Add Comment
Please, Sign In to add comment