Module Camping::Models::Base
In:

Methods

Public Class methods

The default prefix for Camping model classes is the topmost module name lowercase and followed with an underscore.

  Tepee::Models::Page.table_name_prefix
    #=> "tepee_pages"

[Source]

    # File lib/camping/db.rb, line 68
68:     def Base.table_name_prefix
69:         "#{name[/\w+/]}_".downcase.sub(/^(#{A}|camping)_/i,'')
70:     end

[Validate]