mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-06-01 09:12:00 +00:00
Purged git history and removed sensitive information.
This commit is contained in:
commit
6bcc8dc76b
862 changed files with 25312 additions and 0 deletions
15
app/models/gather_server.rb
Normal file
15
app/models/gather_server.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
class GatherServer < ActiveRecord::Base
|
||||
scope :ordered, :order => "votes DESC"
|
||||
|
||||
belongs_to :gather
|
||||
belongs_to :server
|
||||
has_many :real_votes, :class_name => "Vote", :as => :votable
|
||||
|
||||
def to_s
|
||||
self.server.to_s
|
||||
end
|
||||
|
||||
def before_create
|
||||
self.votes = 0
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue