app/models/tenon/asset.rb in tenon-1.0.56 vs app/models/tenon/asset.rb in tenon-1.0.57
- old
+ new
@@ -1,7 +1,8 @@
module Tenon
class Asset < ActiveRecord::Base
attr_accessor :crop_x, :crop_y, :crop_w, :crop_h, :duplicate
+
# Scopes
default_scope -> { order('created_at DESC').includes(:item_assets) }
# Associations
has_many :item_assets