Guest User

Untitled

a guest
Jul 12th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. private
  2.  
  3. def object_params
  4. h = {:user=>current_user, :bonus_card => BonusCard.find(:first), :birthday => current_user.customer_profile.birthday, :title => current_user.customer_profile.title, :firstname => current_user.customer_profile.firstname, :lastname => current_user.customer_profile.lastname, :street => current_user.customer_profile.street, :postal_code => current_user.customer_profile.postal_code, :locality => current_user.customer_profile.locality}
  5. if super
  6. h.merge(super)
  7. else
  8. h
  9. end
  10. end
Add Comment
Please, Sign In to add comment