Permalink
Browse files

[xxxx] Fix application error on creation share file with file_name th…

…at is same uploaded file.
  • Loading branch information...
1 parent 7f5e516 commit 1cc6dff04badc0cbbe32477ce83546d3ef45c5ac @mataki mataki committed Nov 4, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/models/share_file.rb
View
@@ -48,7 +48,8 @@ class ShareFile < ActiveRecord::Base
:include => [:share_file_publications] }
}
- def after_initialize
+ def initialize(attr ={})
+ super(attr)
if self.publication_type.blank?
self.publication_type =
if user_owner?

0 comments on commit 1cc6dff

Please sign in to comment.