This file contains hidden or 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 getCookies() { | |
var c = document.cookie, v = 0, cookies = {}; | |
if (document.cookie.match(/^\s*\$Version=(?:"1"|1);\s*(.*)/)) { | |
c = RegExp.$1; | |
v = 1; | |
} | |
if (v === 0) { | |
c.split(/[,;]/).map(function(cookie) { | |
var parts = cookie.split(/=/, 2), | |
name = decodeURIComponent(parts[0].trimLeft()), |
This file contains hidden or 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
package com.selly.filters | |
import org.codehaus.groovy.grails.web.util.WebUtils | |
class ParamsFilters { | |
List globalParams = [ | |
"controller", | |
"action", | |
"format" |
This file contains hidden or 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
package com.selly.util.converter.json | |
import org.codehaus.groovy.grails.commons.DefaultGrailsDomainClass | |
/** | |
* This class provides the inclusion and exclusion policy | |
* for Marshallers. | |
* | |
* Usage for exclusion policy: | |
* <code> |
NewerOlder