module Sequel::Plugins::SingularTableNames::ClassMethods

  1. lib/sequel/plugins/singular_table_names.rb

Methods

Public Instance

  1. implicit_table_name

Public Instance methods

implicit_table_name()

Returns the implicit table name for the model class, which is the demodulized, underscored, name of the class.

Artist.implicit_table_name # => :artist
Foo::ArtistAlias.implicit_table_name # => :artist_alias
[show source]
   # File lib/sequel/plugins/singular_table_names.rb
27 def implicit_table_name
28   underscore(demodulize(name)).to_sym
29 end