Skip to content

Instantly share code, notes, and snippets.

@l4u
Forked from scottharvey/gist:546923
Created April 29, 2011 00:53

Revisions

  1. harvinius created this gist Aug 24, 2010.
    3 changes: 3 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    def shipping_country_name
    shipping_address.try(:country).try(:name)
    end