spec/dummy/app/models/asset.rb in rails-uploader-0.2.7 vs spec/dummy/app/models/asset.rb in rails-uploader-0.2.8
- old
+ new
@@ -20,8 +20,8 @@
# index_assets_on_assetable_type_and_assetable_id (assetable_type,assetable_id)
# index_assets_on_user_id (user_id)
#
class Asset < ActiveRecord::Base
include Uploader::Asset
-
- belongs_to :assetable, :polymorphic => true
+
+ belongs_to :assetable, polymorphic: true
end