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
activerecord-7.1.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.0 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.0.rc2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.0.rc1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.1.0.beta1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.8 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.7.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.7.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.7 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.6 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.5.1 lib/rails/generators/active_record/model/templates/module.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/rails/generators/active_record/model/templates/module.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/rails/generators/active_record/model/templates/module.rb.tt
rubypitaya-3.12.5 ./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.5 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-7.0.4.3 lib/rails/generators/active_record/model/templates/module.rb.tt
rubypitaya-3.12.4 ./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.2 lib/rails/generators/active_record/model/templates/module.rb.tt
rubypitaya-3.12.3 ./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.1 lib/rails/generators/active_record/model/templates/module.rb.tt