aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/model.rb')
-rw-r--r--spec/support/model.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/model.rb b/spec/support/model.rb
index 10a14d7092..be692e53ec 100644
--- a/spec/support/model.rb
+++ b/spec/support/model.rb
@@ -25,7 +25,7 @@ module Arel
class Model
include Relation
- attr_reader :engine, :attributes
+ attr_reader :engine
def self.build
relation = new
@@ -46,6 +46,10 @@ module Arel
@attributes << type.new(self, name)
end
+ def attributes
+ Header.new(@attributes)
+ end
+
def format(attribute, value)
value
end