blob: a3bf1c37b67b6a2e63e3c9ee57897ab75d34c287 (
plain) (
blame)
1
2
3
4
5
6
7
|
<% module_namespacing do -%>
module <%= class_path.map(&:camelize).join('::') %>
def self.table_name_prefix
'<%= namespaced? ? namespaced_class_path.join('_') : class_path.join('_') %>_'
end
end
<% end -%>
|