Sha256: ee7440a6dcc0d2c3b8a0941bfbf77fdb63d45c8c74e2e4a5d0f5b5afe6ffd827

Contents?: true

Size: 214 Bytes

Versions: 362

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

362 entries across 357 versions & 24 rubygems

Version Path
crono_trigger-0.8.3 lib/generators/crono_trigger/model/templates/module.rb
activerecord-6.1.7.10 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.9 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.8 lib/rails/generators/active_record/model/templates/module.rb.tt
crono_trigger-0.8.1 lib/generators/crono_trigger/model/templates/module.rb
crono_trigger-0.8.0 lib/generators/crono_trigger/model/templates/module.rb
activerecord-6.1.7.7 lib/rails/generators/active_record/model/templates/module.rb.tt
crono_trigger-0.7.1 lib/generators/crono_trigger/model/templates/module.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.6 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.5 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.4 lib/rails/generators/active_record/model/templates/module.rb.tt
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/rails/generators/active_record/model/templates/module.rb.tt
crono_trigger-0.7.0 lib/generators/crono_trigger/model/templates/module.rb
activerecord-6.1.7.3 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.2 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.1.7.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.0.6.1 lib/rails/generators/active_record/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g3aeec2263 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.gacd5f04d4 lib/generators/linked_rails/model/templates/module.rb.tt