Sha256: a046f85e9db4a96c5e9c693729c61978b7091b9d67e454dbc4f97dd8cef2f557
Contents?: true
Size: 331 Bytes
Versions: 26
Compression:
Stored size: 331 Bytes
Contents
require 'active_utils' class DiscoApp::Shop < ActiveRecord::Base include DiscoApp::Concerns::Shop # Extend the Shop model to return the Shop's country as an ActiveUtils country. def country begin ActiveUtils::Country.find(country_name) rescue ActiveUtils::InvalidCountryCodeError nil end end end
Version data entries
26 entries across 26 versions & 1 rubygems