lib/video.rb in ish_models-0.0.33.270 vs lib/video.rb in ish_models-0.0.33.271

- old
+ new

@@ -27,9 +27,12 @@ self[:is_trash] end end field :is_public, :type => Boolean, :default => false + def public + where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) + end field :lead_id, type: :integer field :x, type: Float field :y, type: Float