Sha256: aca9bdf2b9b8556da6ed687cd43e054424c3640016e47d0649efe89ce6180e67
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
require 'active_model' require 'active_model/validations' class BinNumber < ActiveRecord::Base self.table_name = 'bin_checker_bin_numbers' def self.get_bank(bin_id) ActiveSupport::Deprecation.warn "`self.get_bank` is deprecated and may be removed from future releases.", caller bin_number = BinNumber.where(bin_number: bin_id.to_s).try(:first) if bin_number.present? bin_number else nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bin_checker-0.2.0 | lib/models/bin_number.rb |