This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| const {A, computed, isEmpty} = Ember; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle', | |
| length: 1000, | |
| list: null, | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| appName:'Ember Twiddle' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| var get = Ember.get, | |
| arrayComputed = Ember.arrayComputed; | |
| export default function (dependentKey, property) { | |
| var options = { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module JsonApiConcern | |
| extend ActiveSupport::Concern | |
| included do | |
| self.rescue_from ::FpCommon::Exceptions::AccessDenied, :with => :access_denied | |
| self.serialization_scope :access_control | |
| end | |
| def access_denied |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AccessControl < Struct.new(:user, :params) | |
| def authorized_params! | |
| authorized_params | |
| end | |
| def serialization_keys!(_keys, _resource) | |
| _authorized_keys = authorize_serialization_keys(_keys, _resource) | |
| _params_keys = serialization_keys_from_params |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Fp.Event = DS.Model.extend | |
| user: DS.belongsTo('Fp.User') | |
| job: DS.belongsTo('Fp.Job') | |
| invoice: DS.belongsTo('Fp.Invoice') | |
| completedChecklists: DS.hasMany('Fp.ChecklistItem') | |
| createdChecklists: DS.hasMany('Fp.ChecklistItem') | |
| Fp.ChecklistItem = DS.Model.extend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.List = DS.Model.extend | |
| project: DS.BelongsTo(App.Project) | |
| user: DS.BelongsTo(App.User) | |
| task: DS.BelongsTo(App.Task) | |
| proposal: DS.BelongsTo(App.Proposal) |
NewerOlder