Methods
Included Modules
Public Class methods
[ show source ]
# File lib/og/adapter/oracle/utils.rb, line 20
20: def self.shorten_string(str)
21: str[/[a-z].{0,29}$/i]
22: end
[ show source ]
# File lib/og/adapter/oracle/utils.rb, line 8
8: def self.shorten_table_name(klass)
9: tbl = klass.table
10: klass.set_table OracleUtils.shorten_string(tbl)
11: end
Public Instance methods
[ show source ]
# File lib/og/adapter/oracle/utils.rb, line 13
13: def build_join_name(class1, class2, postfix = nil)
14: # Don't reorder arguments, as this is used in places that
15: # have already determined the order they want.
16: jn = "#{Og.table_prefix}j_#{tableize(class1)}_#{tableize(class2)}#{postfix}"
17: OracleUtils.shorten_string(jn)
18: end