jam-cloud/ruby/lib/jam_ruby/models/ars.rb

14 lines
313 B
Ruby
Raw Permalink Normal View History

2020-05-06 23:24:29 +00:00
module JamRuby
class Ars < ActiveRecord::Base
2020-05-08 04:40:57 +00:00
attr_accessible :active, :name, :id_int, :ip, as: :admin
2020-05-06 23:24:29 +00:00
2020-05-08 04:40:57 +00:00
self.table_name = "arses"
@@log = Logging.logger[Ars]
2020-05-06 23:24:29 +00:00
2020-08-22 21:19:15 +00:00
def self.active_arses(beta)
2020-08-22 20:35:42 +00:00
Ars.where(active: true, beta: beta).where('ip is not NULL').where("ip != ''").all
end
2020-05-06 23:24:29 +00:00
end
2020-07-14 23:35:14 +00:00
end