Skip to content

Commit

Permalink
Remove DS. from doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
fsmanuel committed May 31, 2023
1 parent ed15736 commit 13ae76a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ An EmberJS validation framework that is completely and utterly computed property
- Support for Ember Data Models, Objects, Components, Services, etc.
- Support for nested models and objects
- Synchronous and asynchronous support
- Easily integrated with Ember Data's [DS.Errors](http://emberjs.com/api/data/classes/DS.Errors.html)
- Easily integrated with Ember Data
- No observers. Seriously... there are none. Like absolutely zero....
- Custom validators
- I18n support
Expand Down
2 changes: 1 addition & 1 deletion addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import Validator from './validations/validator';
* ```javascript
* // models/user.js
*
* export default DS.Model.extend(Validations, {
* export default Model.extend(Validations, {
* 'username': attr('string'),
* 'password': attr('string'),
* 'email': attr('string')
Expand Down
4 changes: 2 additions & 2 deletions addon/validators/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ export default Base;
* }),
* });
*
* export default DS.Model.extend(Validations, {
* 'username': DS.attr('string'),
* export default Model.extend(Validations, {
* 'username': attr('string'),
* });
* ```
*
Expand Down
6 changes: 3 additions & 3 deletions addon/validators/belongs-to.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { isPromise } from 'ember-cp-validations/utils/utils';
* details: validator('belongs-to')
* });
*
* export default DS.Model.extend(Validations, {
* 'details': DS.belongsTo('user-detail')
* export default Model.extend(Validations, {
* 'details': belongsTo('user-detail')
* });
* ```
*
Expand All @@ -31,7 +31,7 @@ import { isPromise } from 'ember-cp-validations/utils/utils';
* lastName: validator('presence', true)
* });
*
* export default DS.Model.extend(Validations, {
* export default Model.extend(Validations, {
* "firstName": attr('string'),
* "lastName": attr('string'),
* });
Expand Down
2 changes: 1 addition & 1 deletion addon/validators/ds-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getPathAndKey } from 'ember-validators/ds-error';
/**
* <i class="fa fa-hand-o-right" aria-hidden="true"></i> [See All Options](#method_validate)
*
* Creates a link between this library and Ember-Data's [DS.Errors](http://emberjs.com/api/data/classes/DS.Errors.html)
* Creates a link between this library and Ember-Data
* to fetch the latest message for the given attribute.
*
* ## Examples
Expand Down
4 changes: 2 additions & 2 deletions addon/validators/has-many.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { isPromise } from 'ember-cp-validations/utils/utils';
* friends: validator('has-many')
* });
*
* export default DS.Model.extend(Validations, {
* friends: DS.hasMany('user')
* export default Model.extend(Validations, {
* friends: hasMany('user')
* });
* ```
*
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/validations/ds-model-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { run } from '@ember/runloop';
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';

module('Unit | Validations | DS.Model', function (hooks) {
module('Unit | Validations | Model', function (hooks) {
setupTest(hooks);

test('create model with defaults', function (assert) {
Expand Down

0 comments on commit 13ae76a

Please sign in to comment.