Class: SapeConfig
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SapeConfig
- Defined in:
- lib/app/models/sape_config.rb
Class Method Summary collapse
Class Method Details
.bot_ips(site_host) ⇒ Object
3 4 5 |
# File 'lib/app/models/sape_config.rb', line 3 def bot_ips(site_host) where(name: 'ip', site_host: site_host).pluck(:value) end |
.check_code(site_host) ⇒ Object
7 8 9 |
# File 'lib/app/models/sape_config.rb', line 7 def check_code(site_host) where(name: 'sape_new_url', site_host: site_host).first.try(:value) || " " end |
.delimiter(site_host) ⇒ Object
11 12 13 |
# File 'lib/app/models/sape_config.rb', line 11 def delimiter(site_host) where(name: 'sape_delimiter', site_host: site_host).first.try(:value) || " " end |