This file contains 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
search: function (options) { | |
var result = this.where(options); | |
var resultCollection = new window["**need this's class name here**"](result); | |
return resultCollection; | |
} |
This file contains 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 express = require('express'); | |
var app = express(); | |
app.get('*', function(req, res) { | |
var staticTopLevelFolders = [ | |
'assets', | |
'app' | |
] | |
var requestedTopLevelFolder = (req._parsedUrl.pathname).split('/')[1]; |
This file contains 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
# Checks to see if the release you're deploying and the last version's "assets" directories have | |
# the same lines (content). If they do, don't run the asset precompilation. | |
# | |
# Notes on this at the delicious stackoverflow.com: | |
# http://stackoverflow.com/questions/9016002/speed-up-assetsprecompile-with-rails-3-1-3-2-capistrano-deployment | |
# | |
# @note This fucks things up when you add stuff to the precompile list. It won't precompile | |
# those new items 'cause it doesn't think there is anything new. A little bit manual but is a | |
# gotcha so would be nice to handle with this as well. | |
# |
NewerOlder