notebook/app/controllers/write_controller.rb
Andrew Brown cf1efa95b9 clean up
2021-07-02 13:11:37 -07:00

15 lines
422 B
Ruby

class WriteController < ApplicationController
layout 'editor'
def editor
@document = current_user.documents.first
@linked_entities = []
@linkables_cache = {}
@show_footer = false
# TODO: Allow writers to specify a universe to scope content to, instead of all content
@characters = current_user.characters
@locations = current_user.locations
@items = current_user.items
end
end