Commit 81256140993571daef70ff19669d2105800fb465
1 parent
89e0008a
Exists in
master
and in
1 other branch
update spacing in Appearance model
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
app/models/appearance.rb
1 | class Appearance < ActiveRecord::Base | 1 | class Appearance < ActiveRecord::Base |
2 | - belongs_to :voter, :class_name => "Visitor", :foreign_key => 'voter_id' | ||
3 | - belongs_to :prompt | ||
4 | - belongs_to :question | ||
5 | - belongs_to :answerable, :polymorphic => true | 2 | + belongs_to :voter, :class_name => "Visitor", :foreign_key => 'voter_id' |
3 | + belongs_to :prompt | ||
4 | + belongs_to :question | ||
5 | + belongs_to :answerable, :polymorphic => true | ||
6 | 6 | ||
7 | - default_scope :conditions => {:valid_record => true} | 7 | + default_scope :conditions => {:valid_record => true} |
8 | 8 | ||
9 | - def answered? | ||
10 | - !self.answerable_id.nil? | ||
11 | - end | 9 | + def answered? |
10 | + !self.answerable_id.nil? | ||
11 | + end | ||
12 | end | 12 | end |