From 30fb25d3abfc002b85f290587b979d54c35a2e98 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Mon, 22 Mar 2010 16:26:00 -0700 Subject: 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). --- spec/support/model.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'spec/support') 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 -- cgit v1.2.3