Permalink
Browse files

Allows for context specific changes to this rule

  • Loading branch information...
1 parent 86e7b30 commit a184918ccdfd5339222b11483ffa2a6b27753439 @dpp dpp committed May 29, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 web/webkit/src/main/scala/net/liftweb/http/LiftRules.scala
@@ -1448,7 +1448,11 @@ class LiftRules() extends Factory with FormVendor with LazyLoggable {
/**
* Tells Lift if the Ajax JavaScript shoukd be included. By default it is set to true.
*/
- @volatile var autoIncludeAjax: LiftSession => Boolean = session => true
+ @deprecated("Use autoIncludeAjaxCalc")
+ @volatile var autoIncludeAjax: LiftSession => Boolean = session => autoIncludeAjaxCalc.vend().apply(session)
+
+ val autoIncludeAjaxCalc: FactoryMaker[() => LiftSession => Boolean] =
+ new FactoryMaker(() => () => (session: LiftSession) => true) {}
/**
* Define the XHTML validator

0 comments on commit a184918

Please sign in to comment.