aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-03-22 16:26:00 -0700
committerCarl Lerche <carllerche@mac.com>2010-03-22 16:26:00 -0700
commit30fb25d3abfc002b85f290587b979d54c35a2e98 (patch)
tree5ea4b427f6abed9d9be1f45ad449b14e35271095 /spec/support
parentd0b47c64e2c44ef1cc0e9cfb3dc8681599d4d1f3 (diff)
downloadrails-30fb25d3abfc002b85f290587b979d54c35a2e98.tar.gz
rails-30fb25d3abfc002b85f290587b979d54c35a2e98.tar.bz2
rails-30fb25d3abfc002b85f290587b979d54c35a2e98.zip
Switch Arel::Relation to a module. This will allow for classes with Relation extended on them to represent relations themselves (as opposed to their instances being relations).
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/model.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support/model.rb b/spec/support/model.rb
index bd4376efcb..10a14d7092 100644
--- a/spec/support/model.rb
+++ b/spec/support/model.rb
@@ -22,7 +22,9 @@ module Arel
end
end
- class Model < Relation
+ class Model
+ include Relation
+
attr_reader :engine, :attributes
def self.build