class Tag
Public Class Methods
clear()
click to toggle source
# File lib/tag.rb, line 45 def self.clear if Rails.env.test? Tag.each { |r| r.remove } end end
list()
click to toggle source
the first blank used to be disabled, not anymore vp 20180418
# File lib/tag.rb, line 56 def self.list out = Tag.unscoped.order_by( :name => :asc ) return( [['', nil]] + out.map { |item| [ item.name, item.id ] } ) end
n_features()
click to toggle source
@deprecated I don't even know why I have this. Should be simplified into non-being.
# File lib/tag.rb, line 76 def self.n_features 4 end
n_galleries()
click to toggle source
# File lib/tag.rb, line 68 def self.n_galleries 4 end
n_items()
click to toggle source
@deprecated, there will be no reports or galleries in tags. There will be only features and newsitems
# File lib/tag.rb, line 62 def self.n_items 10 end
n_reports()
click to toggle source
# File lib/tag.rb, line 65 def self.n_reports 4 end
n_videos()
click to toggle source
# File lib/tag.rb, line 71 def self.n_videos 4 end
no_parent()
click to toggle source
# File lib/tag.rb, line 51 def self.no_parent Tag.where( :parent_tag_id => nil ) end