Skip to content

Instantly share code, notes, and snippets.

@edavis10
Created February 23, 2009 23:56
Show Gist options
  • Save edavis10/69275 to your computer and use it in GitHub Desktop.
Save edavis10/69275 to your computer and use it in GitHub Desktop.
# Add some alias'es to FillingRequest map the attributes directly
def legal_business_name
self.company
end
def legal_business_name=(v)
self.company = v
end
def phone_number
self.phone
end
def phone_number=(v)
self.phone = v
end
def postalcode
self.zip
end
def postalcode=(v)
self.zip
end
def pre_fill_fields
if company
[:organization, :tax_state, :address, :city, :state, :postalcode, :phone_number].each do |attribute|
self.write_attribute(attribute, company.read_attribute(attribute)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment