Retrospring/app/controllers/settings/blocks_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
275 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Settings::BlocksController < ApplicationController
before_action :authenticate_user!
def index
@blocks = Relationships::Block.where(source: current_user)
@anonymous_blocks = AnonymousBlock.where(user: current_user)
end
end