diff options
Diffstat (limited to 'activerecord/lib/rails/generators/active_record/model/templates/module.rb')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/model/templates/module.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/rails/generators/active_record/model/templates/module.rb b/activerecord/lib/rails/generators/active_record/model/templates/module.rb new file mode 100644 index 0000000000..bb4220f038 --- /dev/null +++ b/activerecord/lib/rails/generators/active_record/model/templates/module.rb @@ -0,0 +1,5 @@ +module <%= class_path.map(&:camelize).join('::') %> + def self.table_name_prefix + '<%= class_path.join('_') %>_' + end +end |