Sha256: 7125e0504d9c85a4d639a92a9d9ad6d5f187901c4d631e0962a7245adeb8018e

Contents?: true

Size: 266 Bytes

Versions: 11

Compression:

Stored size: 266 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
draper-0.18.0 spec/support/samples/active_record.rb
draper-0.17.0 spec/support/samples/active_record.rb
draper-0.16.0 spec/support/samples/active_record.rb
draper-0.15.0 spec/support/samples/active_record.rb
draper-0.15.0rc1 spec/support/samples/active_record.rb
draper-0.14.0 spec/support/samples/active_record.rb
draper-0.12.3 spec/support/samples/active_record.rb
draper-0.12.2 spec/support/samples/active_record.rb
draper-0.13.0 spec/support/samples/active_record.rb
draper-0.12.1 spec/support/samples/active_record.rb
draper-0.12.0 spec/support/samples/active_record.rb