Class: CrawlStation::ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CrawlStation::ApplicationRecord
show all
- Defined in:
- lib/crawl_station/application_record.rb
Class Method Summary
collapse
Class Method Details
.database_config ⇒ Object
9
10
11
|
# File 'lib/crawl_station/application_record.rb', line 9
def self.database_config
CS::Utils.database_config(module_name)
end
|
.module_name ⇒ Object
13
14
15
|
# File 'lib/crawl_station/application_record.rb', line 13
def self.module_name
name.to_s.split('::').first.underscore
end
|
.table_name_prefix ⇒ Object
5
6
7
|
# File 'lib/crawl_station/application_record.rb', line 5
def self.table_name_prefix
"#{module_name}_"
end
|