diff --git a/app/models/appearance.rb b/app/models/appearance.rb index ea5a3ea..a20989d 100644 --- a/app/models/appearance.rb +++ b/app/models/appearance.rb @@ -1,12 +1,12 @@ class Appearance < ActiveRecord::Base - belongs_to :voter, :class_name => "Visitor", :foreign_key => 'voter_id' - belongs_to :prompt - belongs_to :question - belongs_to :answerable, :polymorphic => true + belongs_to :voter, :class_name => "Visitor", :foreign_key => 'voter_id' + belongs_to :prompt + belongs_to :question + belongs_to :answerable, :polymorphic => true - default_scope :conditions => {:valid_record => true} + default_scope :conditions => {:valid_record => true} - def answered? - !self.answerable_id.nil? - end + def answered? + !self.answerable_id.nil? + end end -- libgit2 0.21.2