Changeset 1202

Show
Ignore:
Timestamp:
07/12/08 16:29:31 (6 months ago)
Author:
alban
Message:

Modifie le file_system_path d'attachment_fu par default. Refs #1

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/config/initializers/acts_as_attachment.rb

    r1193 r1202  
    33  module ClassMethods 
    44 
    5     def acts_as_attachment(options = {}) 
     5    def has_attachment(options = {}) 
    66      options[:file_system_path] ||= File.join("public", "attachments", table_name) 
    77      super options