modified version of angularjs-rails-resource for klaseko