Method: Dis::Model::ClassMethods#dis_type
- Defined in:
- lib/dis/model/class_methods.rb
#dis_type ⇒ Object
Returns the storage type name, which Dis will use for directory scoping. Defaults to the name of the database table.
class Document < ActiveRecord::Base; end
Document.dis_type # => "documents"
27 28 29 |
# File 'lib/dis/model/class_methods.rb', line 27 def dis_type @dis_type ||= table_name end |