LiftRules.stripComments(false)
generates following error message:
Boot.scala:61: error: wrong number of arguments for method apply: ()()
= Boolean in trait Vendor
LiftRules.stripComments(false)
On 27 Okt., 16:52, David Pollak feeder.of.the.be...@gmail.com wrote:
Please see
Looking at the definition:
val stripComments: FactoryMaker[() = Boolean] =
new FactoryMaker(() = {() = {
if (Props.devMode)
false
else true
}}) {}
try doing:
LiftRules.stripComments(false){}
Cheers, Tim
On 28 Oct 2009, at 13:22, Yousry Abdallah wrote:
I downloaded the library source yesterday and stumbled on the
(abstract) factory pattern in the LiftRules Class.
Do you think this is the desired way to change a parameter?
Sometimes you use simple assignment:
LiftRules.useXhtmlMimeType = false
or you apply a value:
LiftRules.setSiteMap(...)
I had to slog through some factory maker stuff recently. What I found
out was that it was amazingly flexible, but that made the simple case
non-obvious. For the simple case (set site-wide), the way I found to
to do it was
factory.default(() = defaultValue)
e.g.
Yeah, the signatures are convuluted... gotta change them to
FactoryMaker[Boolean] rather than FactoryMaker[() = Boolean]
On Wed, Oct 28, 2009 at 8:34 AM, Ross Mellgren dri...@gmail.com wrote:
I had to slog through some factory maker stuff recently. What I found
out was that it was amazingly
On Wed, Oct 28, 2009 at 9:21 AM, David Pollak feeder.of.the.be...@gmail.com
wrote:
Yeah, the signatures are convuluted... gotta change them to
FactoryMaker[Boolean] rather than FactoryMaker[() = Boolean]
See http://github.com/dpp/liftweb/issues/#issue/141
On Wed, Oct 28, 2009 at 8:34
Please see LiftRules.stripComments.
You can do LiftRules.stripComments(false)
On Tue, Oct 27, 2009 at 8:18 AM, Yousry Abdallah yous...@gmail.com wrote:
Hi,
at the moment I'm testing my application against 1.1 snapshot and I
noticed that while running lift in production mode: -