Class: AnimateIt::FramesController
Constant Summary
ApplicationController::NullPolicy
Instance Method Summary
collapse
Instance Method Details
#filmstrip ⇒ Object
17
18
19
20
|
# File 'app/controllers/animate_it/frames_controller.rb', line 17
def filmstrip
@composition = composition
@props = preview_props
end
|
#show ⇒ Object
6
7
8
9
10
11
12
13
14
15
|
# File 'app/controllers/animate_it/frames_controller.rb', line 6
def show
@composition = composition
@frame = params[:frame].to_i
@content = @composition.render_frame(view_context, frame: @frame, props: preview_props)
render(:fragment) if params[:only] == "body"
end
|