aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/aircraft.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-07-19 15:52:45 -0600
committerSean Griffin <sean@thoughtbot.com>2015-07-19 15:52:45 -0600
commit6765d4874e7afaa8da0c7790710fe43726ef412c (patch)
treef6d73b4779bed275d29f91c2301047534e122fb6 /activerecord/test/models/aircraft.rb
parent0bd247cc7679adb3c2e30b46ecc9afd57ac46c45 (diff)
parent8cd1d5a41cf54f0dfde2b2d0d406457a6a58dbeb (diff)
downloadrails-6765d4874e7afaa8da0c7790710fe43726ef412c.tar.gz
rails-6765d4874e7afaa8da0c7790710fe43726ef412c.tar.bz2
rails-6765d4874e7afaa8da0c7790710fe43726ef412c.zip
Merge Pull Request #16445
Diffstat (limited to 'activerecord/test/models/aircraft.rb')
-rw-r--r--activerecord/test/models/aircraft.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/aircraft.rb b/activerecord/test/models/aircraft.rb
index 1f35ef45da..c4404a8094 100644
--- a/activerecord/test/models/aircraft.rb
+++ b/activerecord/test/models/aircraft.rb
@@ -1,4 +1,5 @@
class Aircraft < ActiveRecord::Base
self.pluralize_table_names = false
has_many :engines, :foreign_key => "car_id"
+ has_many :wheels, as: :wheelable
end