aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/parrot.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-29 15:34:22 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-29 20:13:36 +0000
commit34609d67b442366644945a95b019daf5b474727b (patch)
tree83172d72312d7f12cdcc99fc9402890879012403 /activerecord/test/models/parrot.rb
parent0b72a04d0c93b666c23500aefbe4a6a76593cd36 (diff)
downloadrails-34609d67b442366644945a95b019daf5b474727b.tar.gz
rails-34609d67b442366644945a95b019daf5b474727b.tar.bz2
rails-34609d67b442366644945a95b019daf5b474727b.zip
Deprecate set_inheritance_column in favour of self.inheritance_column=
Diffstat (limited to 'activerecord/test/models/parrot.rb')
-rw-r--r--activerecord/test/models/parrot.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/models/parrot.rb b/activerecord/test/models/parrot.rb
index 737ef9131b..c4ee2bd19d 100644
--- a/activerecord/test/models/parrot.rb
+++ b/activerecord/test/models/parrot.rb
@@ -1,5 +1,6 @@
class Parrot < ActiveRecord::Base
- set_inheritance_column :parrot_sti_class
+ self.inheritance_column = :parrot_sti_class
+
has_and_belongs_to_many :pirates
has_and_belongs_to_many :treasures
has_many :loots, :as => :looter