Generalize Profile for plug-ins as ProfileBase

This commit is contained in:
Naoki Takezoe
2015-03-02 00:32:59 +09:00
parent 6067fa0fca
commit 5ba0f6d51e

View File

@@ -1,6 +1,6 @@
package model
trait Profile {
trait ProfileBase {
val profile: slick.driver.JdbcProfile
import profile.simple._
@@ -16,10 +16,8 @@ trait Profile {
}
object Profile extends {
val profile = slick.driver.H2Driver
} with AccountComponent
trait CoreProfile extends ProfileBase
with AccountComponent
with ActivityComponent
with CollaboratorComponent
with CommitCommentComponent
@@ -33,7 +31,9 @@ object Profile extends {
with RepositoryComponent
with SshKeyComponent
with WebHookComponent
with PluginComponent with Profile {
with PluginComponent {
val profile = slick.driver.H2Driver
/**
* Returns system date.
@@ -41,3 +41,5 @@ object Profile extends {
def currentDate = new java.util.Date()
}
object Profile extends CoreProfile