Class: BotVerification::IpRange

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
IpRangeModel
Defined in:
lib/bot_verification/ip_range_model.rb

Overview

Default model class that uses the configurable table name This is used if you don't create your own model

Class Method Summary collapse

Class Method Details

.table_nameObject



124
125
126
127
128
129
130
# File 'lib/bot_verification/ip_range_model.rb', line 124

def self.table_name
  if @table_name.respond_to?(:call)
    @table_name.call
  else
    @table_name || BotVerification.configuration.table_name
  end
end