about summary refs log tree commit diff
path: root/app/controllers/profile_controller.rb
blob: 30bd1a6b678832312289f99a5d021a6823fc6b3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class ProfileController < ApplicationController
  before_action :set_account

  def show
  end

  def entry
    @entry = @account.stream_entries.find(params[:id])
    @type  = @entry.activity_type.downcase
  end

  private

  def set_account
    @account = Account.find_by!(username: params[:name], domain: nil)
  end
end