Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: moment transform #276

Open
jamesarosen opened this issue Mar 23, 2018 · 1 comment
Open

Feature request: moment transform #276

jamesarosen opened this issue Mar 23, 2018 · 1 comment

Comments

@jamesarosen
Copy link

It'd be lovely to have an ember-data transform so I can make all model date fields moments:

export default DS.Model.extend({
  createdAt: DS.attr('moment'),
  name: DS.attr('string'),
  updatedAt: DS.attr('moment'),
})
@jasonmit
Copy link
Collaborator

jasonmit commented Apr 2, 2018

@jamesarosen this was asked for in the past. @stefanpenner was against it because of the perf impact.

Context: #157 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants