Skip to content

Commit

Permalink
dont convert attirbutes to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
phawk committed Oct 30, 2015
1 parent 741ef16 commit 57d064d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//= require_tree ./controllers

angular.module("OpenHq", ['ngRoute', 'ngAnimate', 'rails', 'ngSanitize'])
.config(function($routeProvider, $locationProvider) {
.config(function($routeProvider, $locationProvider, railsSerializerProvider) {
$routeProvider
.when('/', {
template: JST['templates/projects/index'],
Expand All @@ -41,4 +41,7 @@ angular.module("OpenHq", ['ngRoute', 'ngAnimate', 'rails', 'ngSanitize'])
// configure html5 to get links working on jsfiddle
$locationProvider.html5Mode(true);

// Don’t convert attributes to camel case
railsSerializerProvider.underscore(angular.identity).camelize(angular.identity);

});

0 comments on commit 57d064d

Please sign in to comment.