From 857322e077af2df93e8dc4666d90a5cb87663724 Mon Sep 17 00:00:00 2001 From: Adrian Dunston Date: Wed, 4 May 2016 11:34:07 -0400 Subject: [PATCH] Moved Code#iban from attr_accessor to attr_writer because it's defined later, and this was throwing a console warning. --- lib/iso_country_codes/code.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iso_country_codes/code.rb b/lib/iso_country_codes/code.rb index 3f6ca8e..df13b3f 100644 --- a/lib/iso_country_codes/code.rb +++ b/lib/iso_country_codes/code.rb @@ -49,8 +49,8 @@ def iban end class << self - attr_accessor :name, :numeric, :alpha2, :alpha3, :calling, :continent, :main_currency, :iban - attr_writer :currencies + attr_accessor :name, :numeric, :alpha2, :alpha3, :calling, :continent, :main_currency + attr_writer :currencies, :iban alias_method :currency, :main_currency alias_method :calling_code, :calling