diff options
author | Carl Lerche <carllerche@mac.com> | 2010-03-22 16:26:00 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-03-22 16:26:00 -0700 |
commit | 30fb25d3abfc002b85f290587b979d54c35a2e98 (patch) | |
tree | 5ea4b427f6abed9d9be1f45ad449b14e35271095 /spec/support | |
parent | d0b47c64e2c44ef1cc0e9cfb3dc8681599d4d1f3 (diff) | |
download | rails-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.rb | 4 |
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 |