Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created May 3, 2012 13:51
Show Gist options
  • Save jmaicher/2585784 to your computer and use it in GitHub Desktop.
Save jmaicher/2585784 to your computer and use it in GitHub Desktop.
JavaScript fixtures with rails and require.js
define([
'underscore'
], function(_) {
var Fixtures = (function() {
var _timezones;
_timezones = <%= ActiveSupport::TimeZone::zones_map.to_json %>;
return {
getTimezones: function() {
return _.clone(_timezones);
}
};
})();
return Fixtures;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment