lib/models/bin_number.rb in bin_checker-0.1.0 vs lib/models/bin_number.rb in bin_checker-0.2.0
- old
+ new
@@ -3,13 +3,14 @@
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
\ No newline at end of file
+end