spec/dummy/app/models/asset.rb in rails-uploader-0.2.0 vs spec/dummy/app/models/asset.rb in rails-uploader-0.2.1
- old
+ new
@@ -22,6 +22,8 @@
#
class Asset < ActiveRecord::Base
include Uploader::Asset
belongs_to :assetable, :polymorphic => true
+
+ before_create :generate_public_token
end