Sha256: 72fc6aaff56a5a01a2cb4a95ae41ba245e6ab38b3d321ed1dc78c441152a4901

Contents?: true

Size: 214 Bytes

Versions: 156

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

156 entries across 153 versions & 9 rubygems

Version Path
plutonium-0.19.2 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.19.1 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.19.0 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.8 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.7 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.6 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.5 lib/generators/pu/res/model/templates/module.rb.tt
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/rails/generators/active_record/model/templates/module.rb.tt
plutonium-0.18.4 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.3 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.2 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.1 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.18.0 lib/generators/pu/res/model/templates/module.rb.tt
plutonium-0.16.5 lib/generators/pu/res/model/templates/module.rb.tt
activerecord-8.0.1 lib/rails/generators/active_record/model/templates/module.rb.tt
plutonium-0.16.4 lib/generators/pu/res/model/templates/module.rb.tt
activerecord-8.0.0.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.2.2.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.5.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.8.7 lib/rails/generators/active_record/model/templates/module.rb.tt