forked from bofh/fetsite
AutoCommit Fre Jul 31 18:03:05 CEST 2015
This commit is contained in:
@@ -2,7 +2,11 @@ class Survey::Choice < ActiveRecord::Base
|
||||
belongs_to :question, class_name: 'Survey::Question'
|
||||
attr_accessible :picture, :sort, :text
|
||||
has_many :answers, class_name: 'Survey::Answer'
|
||||
include ActionView::Helpers::TagHelper
|
||||
def to_s
|
||||
self.text
|
||||
self.text
|
||||
end
|
||||
def html
|
||||
content_tag("i","", class: self.picture ) + self.text
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user