Finalized theme loading and stuff
This commit is contained in:
parent
321fa41930
commit
bdbbd06dad
73 changed files with 573 additions and 378 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
class HomeController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
before_action :set_pack
|
||||
before_action :set_initial_state_json
|
||||
|
||||
def index
|
||||
|
@ -37,6 +38,10 @@ class HomeController < ApplicationController
|
|||
redirect_to(default_redirect_path)
|
||||
end
|
||||
|
||||
def set_pack
|
||||
use_pack 'home'
|
||||
end
|
||||
|
||||
def set_initial_state_json
|
||||
serializable_resource = ActiveModelSerializers::SerializableResource.new(InitialStatePresenter.new(initial_state_params), serializer: InitialStateSerializer)
|
||||
@initial_state_json = serializable_resource.to_json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue