Sha256: 72ca5c82693bff4f7decfb4bc46a93a562b6f790e6d3f3366c10e6602635df3c
Contents?: true
Size: 367 Bytes
Versions: 95
Compression:
Stored size: 367 Bytes
Contents
module Addresses::Regions::Base extend ActiveSupport::Concern included do self.data = JSON.parse(File.read(File.expand_path("../../../../../config/addresses/states.json", File.dirname(__FILE__)))) belongs_to :country, class_name: "Addresses::Country" def modified_state_code state_code.scan(/\D/).empty? ? name : state_code end end end
Version data entries
95 entries across 95 versions & 1 rubygems