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

14 lines
425 B
Ruby
Raw Permalink Normal View History

2020-05-06 23:24:29 +00:00
module JamRuby
class Ars < ActiveRecord::Base
2026-02-16 15:05:12 +00:00
attr_accessible :password, :username, :active, :beta, :name, :provider, :id_int, :ip, :port, :continent, :country, :city, :subdivision, :latitude, :longitude, 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
2026-02-16 15:05:12 +00:00
end