Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def show
- customer_id = params[:customer_id]
- @user = User.find_by_id(customer_id)
- @merchant_customer = MerchantCustomer.find_by_customer_id(customer_id)
- @transactions = Transaction.where(user_id: customer_id).order(created_at: :desc)
- @conversations = @user.merchant_conversations
- @last_message_resolution = @user.message_resolutions.last
- @last_conversation = Conversation.find_last_conversation(@merchant_customer.merchant_id, 'user', @user.id)
- @last_conversation_ref = ConversationRef.find_last_conversation_ref(@last_conversation)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement