Class: BinNumber
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BinNumber
- Defined in:
- lib/models/bin_number.rb
Class Method Summary collapse
Class Method Details
.get_bank(bin_id) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/models/bin_number.rb', line 7 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 |