- before_action :lookup_user, :only => :index
- before_action :check_database_writable, :only => [:create, :hide, :unhide]
-
- allow_thirdparty_images :only => :index
-
- def index
- @title = t ".title", :user => @user.display_name
-
- comments = DiaryComment.where(:user => @user)
- comments = comments.visible unless can? :unhide, DiaryComment