Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Resolve circular dependency between Attachment <-> Version

  • Loading branch information...
commit d470f412739ede2fb4c466e9037a5cdf4a945101 1 parent ab1a5b9
@jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb
View
2  vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb
@@ -30,7 +30,7 @@ def acts_as_attachable(options = {})
attachable_options[:delete_permission] = options.delete(:delete_permission) || "edit_#{self.name.pluralize.underscore}".to_sym
has_many :attachments, options.merge(:as => :container,
- :order => "#{Attachment.table_name}.created_on",
+ :order => :created_on,
:dependent => :destroy)
attr_accessor :unsaved_attachments
after_initialize :initialize_unsaved_attachments
Please sign in to comment.
Something went wrong with that request. Please try again.