~peter-kovac11/play/play-scala-console-improvements

« back to all changes in this revision

Viewing changes to samples-and-tests/yabe-with-scala/app/controllers/Application.scala

  • Committer: guillaume
  • Date: 2009-11-11 17:19:54 UTC
  • Revision ID: guillaume@macbook-pro-de-guillaume.local-20091111171954-1z761dqr0aw93747
yabe-with-scala

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    
23
23
}
24
24
 
25
 
trait Log extends Actions {
26
 
    
27
 
    @Before
28
 
    private def enter {
29
 
        println("ENTER")
30
 
    }
31
 
    
32
 
    @After
33
 
    private def exit {
34
 
        println("EXIT")
35
 
    }
36
 
    
37
 
}
38
 
 
39
 
object Application extends Actions with Defaults with Log {
 
25
object Application extends Actions with Defaults {
40
26
 
41
27
    def index() { 
42
28
        val frontPost = find[Post]("order by postedAt desc").first