Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Set default storage with Ftp for all Model #1

Open
huacnlee opened this issue Sep 15, 2010 · 1 comment
Open

Set default storage with Ftp for all Model #1

huacnlee opened this issue Sep 15, 2010 · 1 comment

Comments

@huacnlee
Copy link

create a new file as config/environment.rb and add this code:

Rails::Initializer.run do |config|
  ...
  config.after_initialize do
    if Rails.env == 'development'
      Paperclip::Attachment.default_options.merge!(:storage => :ftp)  
    end
  end
end
@olek
Copy link
Collaborator

olek commented May 13, 2011

Is this really an issue with PaperclipFTP or just an example of particular way of using it in your application?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants