* Add tests and Railsify a few things * Adds JSON representation of ProfilePreviewCardsController * Load profile and setting eagerly * Add profile preview card color
7 lines
161 B
Ruby
7 lines
161 B
Ruby
class ProfilePreviewCardsController < ApplicationController
|
|
layout false
|
|
|
|
def show
|
|
@user = User.includes(:profile, :setting).find(params[:id])
|
|
end
|
|
end
|