Skip to content

Commit

Permalink
Added target_list output connection when fetch groups is set
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed May 5, 2010
1 parent b23b7d1 commit 1e073a7
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions vendor/modules/user_profile/app/models/user_profile_entry.rb
Expand Up @@ -53,17 +53,11 @@ def self.fetch_entry(user_id,profile_type_id)
end
entry
end

def method_missing(methd)
self.end_user.send(methd)
end

def name
self.end_user.name
end

def image
self.end_user.image

%w(name image full_name first_name last_name gender dob source address billing_address work_address shipping_address salutation middle_name lead_source username cell_phone introduction suffix second_image).each do |fld|
class_eval <<-METHOD
def #{fld}; self.end_user.#{fld}; end
METHOD
end

def add_url
Expand Down

0 comments on commit 1e073a7

Please sign in to comment.