]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/composite_primary_keys-2.2.2/test/fixtures/product.rb
Normalise line endings.
[rails.git] / vendor / gems / composite_primary_keys-2.2.2 / test / fixtures / product.rb
index 5466dcabe57254862c0d0c2d9fe01714c8e0bc7e..e780fd2f42c56d566be519291c0fa38267dd7d9a 100644 (file)
@@ -1,7 +1,7 @@
-class Product < ActiveRecord::Base\r
-       set_primary_keys :id  # redundant\r
-       has_many :product_tariffs, :foreign_key => :product_id\r
-       has_one :product_tariff, :foreign_key => :product_id\r
-\r
-       has_many :tariffs, :through => :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]\r
-end\r
+class Product < ActiveRecord::Base
+       set_primary_keys :id  # redundant
+       has_many :product_tariffs, :foreign_key => :product_id
+       has_one :product_tariff, :foreign_key => :product_id
+
+       has_many :tariffs, :through => :product_tariffs, :foreign_key => [:tariff_id, :tariff_start_date]
+end