Commit 3c6464b4650bfbb68dfa8c6caa46cbf1ef374562
1 parent
65096c7b
Exists in
master
and in
1 other branch
update choice to only version certain attribute
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/choice.rb
1 | class Choice < ActiveRecord::Base | 1 | class Choice < ActiveRecord::Base |
2 | - acts_as_versioned | 2 | + acts_as_versioned :if_changed => [:data, :creator_id, :question_id, :active] |
3 | 3 | ||
4 | belongs_to :question, :counter_cache => true | 4 | belongs_to :question, :counter_cache => true |
5 | belongs_to :creator, :class_name => "Visitor", :foreign_key => "creator_id" | 5 | belongs_to :creator, :class_name => "Visitor", :foreign_key => "creator_id" |