lib/video.rb in ish_models-0.0.33.25 vs lib/video.rb in ish_models-0.0.33.26
- old
+ new
@@ -4,9 +4,10 @@
PER_PAGE = 6
field :name, :type => String
field :descr, :type => String
+ def description; descr; end
default_scope ->{ where({ :is_public => true, :is_trash => false }).order_by({ :created_at => :desc }) }
field :is_trash, :type => Boolean, :default => false
field :is_public, :type => Boolean, :default => true