Files
fizzy/app/controllers/concerns/user_timeline_scoped.rb
T
2025-05-22 16:18:28 -05:00

13 lines
269 B
Ruby

module UserTimelineScoped
extend ActiveSupport::Concern
included do
include FilterScoped
end
def show
@filter = Current.user.filters.new(creator_ids: [ @user.id ])
@day_timeline = Current.user.timeline_for(Time.current, filter: @filter)
end
end