def define_methods
      methods = []
      pretty_name = @relationship[:target][:name]
      methods << define_method(@link_field)
      methods << define_alias(pretty_name, @link_field) if pretty_name != @link_field
      methods
    end
def define_methods
      methods = []
      pretty_name = @relationship[:target][:name]
      methods << define_method(@link_field)
      methods << define_alias(pretty_name, @link_field) if pretty_name != @link_field
      methods
    end
Defines methods for accessing the association target on the owner class.
 If the link_field name includes the owner class name, it is stripped before
 creating the method.  If this occurs, we also create an alias to the stripped
 method using the full link_field name.