Skip to content

Commit 24d008c

Browse files
committed
fixed for no package define schema tables
1 parent ea1a3ae commit 24d008c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/src/main/scala/ActiveRecordConfig.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class DefaultConfig(
112112
overrideSettings: Map[String, Any] = Map()
113113
) extends ActiveRecordConfig {
114114
lazy val env = System.getProperty("run.mode", "dev")
115-
lazy val _prefix = schema.getClass.getName.dropRight(1)
115+
lazy val _prefix = schema.getClass.getName.dropRight(1).replaceFirst("^.+\\$", "")
116116
def prefix(key: String): String = s"${_prefix}.${key}"
117117

118118
logger.debug("----- Loading config: %s (mode: %s) -----".format(_prefix, env))

0 commit comments

Comments
 (0)