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
linked_rails-0.0.4.pre.g1faca9643 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g4c8e21c9f lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g76dedd8ba lib/generators/linked_rails/model/templates/module.rb.tt
crono_trigger-0.6.3 lib/generators/crono_trigger/model/templates/module.rb
linked_rails-0.0.4.pre.g7123943aa lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g72bb595fe lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.gd8464437f lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g661cde413 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.ge09501794 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.gc3dfc6914 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g92825d924 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g14b377f91 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g2c53724b3 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g83aa52ab3 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.gaa82a222d lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.g9b7bc9073 lib/generators/linked_rails/model/templates/module.rb.tt
linked_rails-0.0.4.pre.ge1306665a lib/generators/linked_rails/model/templates/module.rb.tt
crono_trigger-0.6.2 lib/generators/crono_trigger/model/templates/module.rb
activerecord-6.1.6.1 lib/rails/generators/active_record/model/templates/module.rb.tt
activerecord-6.0.5.1 lib/rails/generators/active_record/model/templates/module.rb.tt