'use strict' Application.Services.service 'CSRF', ['$cookies', ($cookies)-> return { setMetaTags: -> if angular.element('meta[name="csrf-param"]').length == 0 angular.element('head').append("") angular.element('head').append("") else angular.element('meta[name="csrf-token"]').replaceWith("") return } ]