Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Moved Code#iban from attr_accessor to attr_writer because it's define…
Browse files Browse the repository at this point in the history
…d later, and this was throwing a console warning.
  • Loading branch information
Adrian Dunston committed May 4, 2016
1 parent c168ffb commit 857322e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/iso_country_codes/code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 857322e

Please sign in to comment.