Skip to content

Instantly share code, notes, and snippets.

@rlivsey
rlivsey / 1-helper.js
Created May 3, 2012 19:53 — forked from wagenet/1-helper.js
Ember Handlebars Transform Helper
Ember.HandlebarsTransformView = Ember.View.extend(Ember._Metamorph, {
rawValue: null,
transformFunc: null,
value: function(){
var rawValue = this.get('rawValue'),
transformFunc = this.get('transformFunc');
return transformFunc(rawValue);
}.property('rawValue', 'transformFunc').cacheable(),
God.watch do |w|
w.name = "navvy-1"
w.group = 'navvy'
w.interval = 30.seconds
w.start = "rake navvy:work"
w.dir = RAILS_ROOT
w.env = {'RAILS_ENV' => RAILS_ENV}
w.log = "#{RAILS_ROOT}/log/navvy.log"
w.uid = 'rails'