Sha256: 123fa33c16498d8fbf00fa890ff1806087c9471b09107d51bdb4726bb75c1401

Contents?: true

Size: 174 Bytes

Versions: 1

Compression:

Stored size: 174 Bytes

Contents

module MongoDoc
  class Base
    def errors_on(attribute)
      self.valid?
      [self.errors.on(attribute)].flatten.compact
    end
    alias :error_on :errors_on
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongodoc-0.0.0 spec/base_ext.rb