From 1051ee0767ff71007f22117eeb95e65a9c880b3b Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 18 Sep 2011 05:16:39 -0700 Subject: [PATCH] sti & typo fix --- app/models/domain.rb | 1 + app/models/record.rb | 1 + app/views/fragments/_bottom.html.erb | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/models/domain.rb b/app/models/domain.rb index 0233a78..173f106 100644 --- a/app/models/domain.rb +++ b/app/models/domain.rb @@ -1,3 +1,4 @@ class Domain < ActiveRecord::Base + set_inheritance_column { 'sti_type' } has_many :records end diff --git a/app/models/record.rb b/app/models/record.rb index 265c0e6..a8cbc98 100644 --- a/app/models/record.rb +++ b/app/models/record.rb @@ -1,3 +1,4 @@ class Record < ActiveRecord::Base + set_inheritance_column { 'sti_type' } belongs_to :domain end diff --git a/app/views/fragments/_bottom.html.erb b/app/views/fragments/_bottom.html.erb index ce8bb6a..87ae651 100644 --- a/app/views/fragments/_bottom.html.erb +++ b/app/views/fragments/_bottom.html.erb @@ -1,5 +1,5 @@ \ No newline at end of file