Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module PaperclipStorageOption
- module ClassMethods
- def options
- Rails.env.production? ? production_options : default_options
- end
- private
- def production_options
- {
- storage: :dropbox,
- dropbox_credentials: Rails.root.join("config/dropbox.yml")
- }
- end
- def default_options
- {}
- end
- end
- extend ClassMethods
- end
Add Comment
Please, Sign In to add comment