mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-05-31 00:41:20 +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
14
app/models/option.rb
Normal file
14
app/models/option.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
class Option < ActiveRecord::Base
|
||||
include Extra
|
||||
|
||||
attr_protected :id, :updated_at, :created_at, :votes
|
||||
|
||||
validates_length_of :option, :in => 1..30
|
||||
|
||||
has_many :real_votes, :class_name => "Vote", :as => :votable
|
||||
belongs_to :poll
|
||||
|
||||
def to_s
|
||||
self.option
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue