882cff885c
Making the filtering object serve the role of loading 4 collections is not good separation.
11 lines
310 B
Ruby
11 lines
310 B
Ruby
class My::MenusController < ApplicationController
|
|
def show
|
|
@filters = Current.user.filters.all
|
|
@boards = Current.user.boards.ordered_by_recently_accessed
|
|
@tags = Tag.all.alphabetically
|
|
@users = User.active.alphabetically
|
|
|
|
# fresh_when etag: [ @user_filtering, Current.session ]
|
|
end
|
|
end
|