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
if Rails.env.development? | |
# copy templates from slim-rails to lib/generators/slim/scaffold/templates and customize | |
module App | |
class Application < ::Rails::Application | |
generators do | |
require 'generators/slim/scaffold/scaffold_generator' | |
Slim::Generators::ScaffoldGenerator.class_eval do | |
source_root File.expand_path('../../../lib/generators/slim/scaffold/templates', __FILE__) | |
end |
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
using Nemerle; | |
using Nemerle.Collections; | |
using Nemerle.Compiler; | |
using Nemerle.Compiler.Parsetree; | |
using Nemerle.Text; | |
using Nemerle.Utility; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; |
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
function DataGate() { | |
var loadOne = function (url, ctor, callback) { | |
$.getJSON(url, function (model) { | |
var result = new ctor(model); | |
callback(result); | |
}); | |
}; | |
var loadMany = function (url, ctor, callback) { | |
$.getJSON(url, function (model) { |