Permalink
Browse files

Merge pull request #49 from rayvarner/develop

Introduced Lucee into codebase.
  • Loading branch information...
2 parents b5dce02 + bb711f3 commit 33d3097d8551ba6070e2779172a36b8edb689b6c @marcesher committed Jul 26, 2015
Showing with 7 additions and 4 deletions.
  1. +3 −0 core/LuceeFactory.cfc
  2. +4 −4 core/MongoUtil.cfc
View
@@ -0,0 +1,3 @@
+component extends="RailoFactory" {
+
+}
View
@@ -27,10 +27,10 @@
For Adobe ColdFusion, we need the CFStrictTyper because Adobe CF will treat numbers and booleans as strings.
- For Railo, we can use the "NoTyper" because Railo treats numbers as numbers and booleans as booleans
+ For Lucee/Railo, we can use the "NoTyper" because Lucee/Railo treats numbers as numbers and booleans as booleans
*/
public function getDocumentTyperClass(){
- if( server.coldfusion.productname eq "Railo") return "net.marcesher.NoTyper";
+ if( server.coldfusion.productname eq "Lucee" or server.coldfusion.productname eq "Railo") return "net.marcesher.NoTyper";
return "net.marcesher.CFStrictTyper";
}
@@ -55,12 +55,12 @@
function newOperationalDBObject(){
return dboFactory.newInstance(variables.operationTyper);
}
-
+
/**
* Designate a value to always be evaluated as string
**/
function asString(value){
- if( server.coldfusion.productname eq "Railo") return value;
+ if(server.coldfusion.productname eq "Lucee" or server.coldfusion.productname eq "Railo") return value;
return variables.mongoFactory.getObject("net.marcesher.CFStrictTyperString").init(toString(arguments.value));
}

0 comments on commit 33d3097

Please sign in to comment.