Class: Netfira::WebConnect::Model::Support

Inherits:
Netfira::WebConnect::Model show all
Defined in:
lib/netfira/web_connect/model.rb,
lib/netfira/web_connect/model/support.rb

Class Method Summary collapse

Methods inherited from Netfira::WebConnect::Model

#dispatch_event, plural_name, single_name

Class Method Details

.table_nameObject



4
5
6
7
8
9
10
# File 'lib/netfira/web_connect/model/support.rb', line 4

def self.table_name
  @table_name ||= if self == Model::Support
    Models::Table.table_name
  else
    Netfira::WebConnect.db_table_prefix('_' << name.demodulize.underscore.pluralize).to_s
  end
end