docbrown/app/controllers/profile_preview_card_controller.rb
Suzanne Aitchison 845a5fade5
Profile Preview Cards (RFC#222) - author name in comments (#14056)
* show dropdowns on pre-existing comments

* show preview on comments, v rough version of showing preview on recently added comments

* tidy up error, add some comments

* show the ama icon when appropriate

* add to comment on article cypress spec

* add test for preview card on article comment

* tidy up

* small refactors

* wait for button init in cypress test

* add test for article author byline on organization post

* Trigger CI builds

* Trigger CI builds
2021-06-25 10:05:37 +01:00

8 lines
187 B
Ruby

class ProfilePreviewCardController < ApplicationController
layout false
def show
@actor = User.find_by(id: params[:user_id])
@preview_id = params[:preview_card_id]
end
end