Class: TestPlayController

Inherits:
ApplicationController show all
Defined in:
app/controllers/test_play_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) show_through_digest



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'app/controllers/test_play_controller.rb', line 2

def show_through_digest
  @test = get_test
  authorize! :show_through_digest, @test

  # clusterf**k
  render json: @test.as_json(
     include: {
         tasks: {
             include: {
                 prototype: {
                     include: {
                         mockups: {
                             methods: :elements
                         }
                     }
                 }
             }
         }
     }), status: :ok
end