Sha256: 5f48d1bc2ed79738027f028e7ea93d74a3433a8587c59af814e06c8cf0c1b6eb
Contents?: true
Size: 321 Bytes
Versions: 1
Compression:
Stored size: 321 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) 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.1.0 | lib/models/bin_number.rb |