Class: AnimateIt::PropsController

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

Constant Summary

Constants inherited from ApplicationController

ApplicationController::NullPolicy

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
8
# File 'app/controllers/animate_it/props_controller.rb', line 3

def update
  @composition = composition
  @props_json = JSON.pretty_generate(@composition.props.resolve(preview_props))
  @frame_url = "#{animate_it_path("/compositions/#{@composition.id}/frame/0")}?#{URI.encode_www_form(pp: "disable",
                                                                                                     props_json: @props_json)}"
end