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', | |
actions: { | |
reportFocus() { | |
console.log('focused'); | |
} | |
} | |
}); |
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
CREATE FUNCTION maintain_realty_photos_count_trg() RETURNS TRIGGER AS | |
$$ | |
BEGIN | |
IF TG_OP IN ('UPDATE', 'DELETE') THEN | |
UPDATE realties SET photos_count = photos_count - 1 WHERE id = old.realty_id; | |
RETURN old; | |
END IF; | |
IF TG_OP IN ('INSERT', 'UPDATE') THEN | |
UPDATE realties SET photos_count = photos_count + 1 WHERE id = new.realty_id; | |
RETURN new; |
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
{ | |
"auto_complete": false, | |
"caret_style": "solid", | |
"ensure_newline_at_eof_on_save": true, | |
"ignored_packages": [ | |
"Vintage" | |
], | |
"find_selected_text": true, | |
"fold_buttons": false, | |
"folder_exclude_patterns": [ |
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
//template is {{input value=filterString}} | |
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
filterString:'', | |
doUpdateModel: function() { |
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
Ember.Route.reopen({ | |
activate: function() { | |
if (this.get('session.currentUser.validated') || /signup\/validate/.test(document.URL)) { | |
this._super(); | |
} | |
else | |
{ | |
this.transitionTo('signup.complete'); | |
} | |
} |
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.Route.extend({ | |
actions: { | |
saveModel: function() { | |
Ember.RSVP.all([ | |
this.currentModel.save(), | |
this.currentModel.get('notifications').save() | |
]).then( () => { | |
this.showFlashNow('Saved Successfully!', 'success'); |
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
var pickFiles = require('broccoli-static-compiler'); | |
var foundation = pickFiles('bower_components/foundation/scss/foundation', { | |
srcDir: '/', | |
files: ['**/*'], | |
destDir: '/assets/foundation' | |
}); | |
var mergeTrees = require('broccoli-merge-trees'); | |
module.exports = mergeTrees([app.toTree(), foundation], { | |
overwrite: true |
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
define('timezones', [], function(){ | |
return [ | |
{ | |
"value": "Dateline Standard Time", | |
"abbr": "DST", | |
"offset": -12, | |
"isdst": false, | |
"text": "(UTC-12:00) International Date Line West" | |
}, | |
{ |