Created
September 16, 2014 09:35
-
-
Save dawidlenkiewicz/dda0d483ff227393a13a to your computer and use it in GitHub Desktop.
delegate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base.delegate :province_name, to: 'address.zip_code', allow_nil: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delegate :name, to: :province, prefix: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment