Sha256: 72fc6aaff56a5a01a2cb4a95ae41ba245e6ab38b3d321ed1dc78c441152a4901

Contents?: true

Size: 214 Bytes

Versions: 163

Compression:

Stored size: 214 Bytes

Contents

<% 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 -%>

Version data entries

163 entries across 160 versions & 10 rubygems

Version Path
activerecord-7.0.0.rc1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.0.alpha2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.0.alpha1 lib/rails/generators/active_record/model/templates/module.rb.tt