Skip to content

Instantly share code, notes, and snippets.

@poteto
Created November 12, 2015 15:46
Show Gist options
  • Save poteto/8f48ea31674f5f1e79e3 to your computer and use it in GitHub Desktop.
Save poteto/8f48ea31674f5f1e79e3 to your computer and use it in GitHub Desktop.
// index/controller.js
import Ember from 'ember';
const { Controller, set } = Ember;
export default Controller.extend({
actions: {
setIsBirthday(isBirthday) {
set(this, 'user.isBirthday', isBirthday);
user.save();
},
setBirthDate(birthDate) {
set(this, 'user.birthDate', birthDate);
user.save();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment