Sha256: 3fb246f8688ea4fff9cb1a3a32b4df0d8bd0dd6727c0492c3387ad6f32bda39c
Contents?: true
Size: 487 Bytes
Versions: 3
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Panda module CMS module Admin class UserDisplayComponent < ViewComponent::Base attr_accessor :user_id, :user, :metadata def initialize(user_id: nil, user: nil, metadata: "") @user = if user.nil? && user_id.present? && Panda::CMS::User.find(user_id) Panda::CMS::User.find(user_id) else user end @metadata = metadata end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems