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
plutonium-0.15.14 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.13 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.12 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.11 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.10 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.9 lib/generators/pu/res/model/templates/module.rb.tt
activerecord-8.0.0 lib/rails/generators/active_record/model/templates/module.rb.tt
plutonium-0.15.8 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.7 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.15.6 lib/generators/pu/res/model/templates/module.rb.tt
activerecord-7.2.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.5 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-8.0.0.rc2 lib/rails/generators/active_record/model/templates/module.rb.tt
plutonium-0.15.5 lib/generators/pu/res/model/templates/module.rb.tt
activerecord-7.2.1.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.4.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.8.6 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-8.0.0.rc1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.2.1.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.4.1 lib/rails/generators/active_record/model/templates/module.rb.tt