|
|
@ -1,9 +1,10 @@
|
|
|
|
# frozen_string_literal: true
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
|
|
class SharesController < ApplicationController
|
|
|
|
class SharesController < ApplicationController
|
|
|
|
layout 'public'
|
|
|
|
layout 'modal'
|
|
|
|
|
|
|
|
|
|
|
|
before_action :authenticate_user!
|
|
|
|
before_action :authenticate_user!
|
|
|
|
|
|
|
|
before_action :set_body_classes
|
|
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
def show
|
|
|
|
serializable_resource = ActiveModelSerializers::SerializableResource.new(InitialStatePresenter.new(initial_state_params), serializer: InitialStateSerializer)
|
|
|
|
serializable_resource = ActiveModelSerializers::SerializableResource.new(InitialStatePresenter.new(initial_state_params), serializer: InitialStateSerializer)
|
|
|
@ -22,4 +23,8 @@ class SharesController < ApplicationController
|
|
|
|
text: params[:text],
|
|
|
|
text: params[:text],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def set_body_classes
|
|
|
|
|
|
|
|
@body_classes = 'compose-standalone'
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|