features/support/active_model_example.rb in catwalk-0.0.1 vs features/support/active_model_example.rb in catwalk-0.0.2

- old
+ new

@@ -1,23 +1,23 @@ require 'active_model' class ActiveModelExample - extend ActiveModel::Naming + extend ActiveModel::Naming - attr_reader :errors + attr_reader :errors - def initialize - @errors = ActiveModel::Errors.new(self) - end + def initialize + @errors = ActiveModel::Errors.new(self) + end - def to_model - self - end + def to_model + self + end - def to_key; {}; end - def to_param; {}; end - def valid?; true; end - def new_record?; true; end - def destroyed?; true; end - def persisted?; true; end + def to_key; {}; end + def to_param; {}; end + def valid?; true; end + def new_record?; true; end + def destroyed?; true; end + def persisted?; true; end end