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
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.4 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.3.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.3 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.2.4 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.2.3 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.2.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.2.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.0 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.0.rc3 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.0.rc2 lib/rails/generators/active_record/model/templates/module.rb.tt
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