Created
February 23, 2009 23:56
-
-
Save edavis10/69275 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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