Created
November 4, 2010 12:38
-
-
Save hedefalk/662399 to your computer and use it in GitHub Desktop.
Ett test
This file contains 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 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