spec/support/model.rb in arel-0.3.3 vs spec/support/model.rb in arel-0.4.0

- old
+ new

@@ -23,11 +23,11 @@ end class Model include Relation - attr_reader :engine, :attributes + attr_reader :engine def self.build relation = new yield relation relation @@ -44,15 +44,19 @@ def attribute(name, type) @attributes << type.new(self, name) end + def attributes + Header.new(@attributes) + end + def format(attribute, value) value end def insert(row) insert = super Arel::Row.new(self, row) insert.record end end -end \ No newline at end of file +end