Skip to content

Instantly share code, notes, and snippets.

@hedefalk
Created November 4, 2010 12:38
Show Gist options
  • Save hedefalk/662399 to your computer and use it in GitHub Desktop.
Save hedefalk/662399 to your computer and use it in GitHub Desktop.
Ett test
package se.apogo.liftcms
package boot
import model._
import net.liftweb.http.LiftRules
import _root_.net.liftweb.mapper.{Schemifier}
object LiftCmsComponent {
var allowEdit : () => Boolean = () => false
def init(editAllowed: () => Boolean) {
LiftRules.addToPackages("se.apogo.liftcms") // TODO: Shouldn't we use class here?
Schemifier.schemify(true, Schemifier.infoF _, CmsPage)
allowEdit = editAllowed
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment