Skip to content

Instantly share code, notes, and snippets.

View mattmcginnis's full-sized avatar

Matt McGinnis mattmcginnis

View GitHub Profile
@mattmcginnis
mattmcginnis / controllers.application.js
Last active July 27, 2018 22:08 — forked from offirgolan/controllers.application.js
Ember CP Validations - Disabled Bug
import Ember from 'ember';
import { buildValidations, validator } from 'ember-cp-validations';
const Validations = buildValidations({
'something.stepOneValue': validator('presence', {
presence: true,
disabled: Ember.computed.not('model.isStepOne'),
message: 'stepOne value cannot be blank'
}),
-- `menu_click`, by Jacob Rus, September 2006
--
-- Accepts a list of form: `{"Finder", "View", "Arrange By", "Date"}`
-- Execute the specified menu item. In this case, assuming the Finder
-- is the active application, arranging the frontmost folder by date.
--
-- One way to use:
-- Compile and export the script with a .app extension. Then open
-- with Spotlight or use a shell script to launch. I run it after
-- the simulator has launched the app.
var MembersNewRoute = Ember.Route.extend({
email: '',
beforeModel: function(transition) {
var registrantKey = transition.params.registrant_key;
this.store.find('registrant', registrantKey).then(function(registrant) {
// "this" is undefined
this.set('email', registrant.email);
});

Consulting Contract

Revised date: 01/22/2013

Between us McGintech and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so