Class: Flms::AnimationLayersController
- Inherits:
-
AbstractLayerController
- Object
- ActionController::Base
- ApplicationController
- AbstractLayerController
- Flms::AnimationLayersController
- Defined in:
- app/controllers/flms/animation_layers_controller.rb
Instance Method Summary collapse
Methods inherited from AbstractLayerController
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/flms/animation_layers_controller.rb', line 8 def create @layer = AnimationLayer.new params[:animation_layer] @layer.image = params[:animation_layer][:image] do_create end |
#new ⇒ Object
4 5 6 |
# File 'app/controllers/flms/animation_layers_controller.rb', line 4 def new @layer = AnimationLayer.new.build_default_keyframes end |
#update ⇒ Object
14 15 16 |
# File 'app/controllers/flms/animation_layers_controller.rb', line 14 def update do_update @layer.update_attributes(params[:animation_layer]) end |