1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/spec/support/active_record.rb
Andrew Haines b8ca040653 Spec tidy-up
Removes some unneeded sample decorators and reorganises the samples
2012-11-09 01:02:54 +00:00

22 lines
314 B
Ruby

module ActiveRecord
class Base
include ActiveModel::Validations
include ActiveModel::Conversion
attr_reader :errors, :to_model
def initialize
@errors = ActiveModel::Errors.new(self)
end
def self.limit
self
end
end
end
module ActiveRecord
class Relation
end
end