Module: Fleximage::AviaryController::InstanceMethods
- Defined in:
- lib/fleximage/aviary_controller.rb
Instance Method Summary collapse
-
#aviary_image ⇒ Object
Deliver the master image to aviary.
-
#aviary_image_update ⇒ Object
Aviary posts the edited image back to the controller here.
Instance Method Details
#aviary_image ⇒ Object
Deliver the master image to aviary
48 49 50 51 |
# File 'lib/fleximage/aviary_controller.rb', line 48 def aviary_image render :text => @model.load_image.to_blob, :content_type => Mime::Type.lookup_by_extension(self.class.aviary_model_class.image_storage_format.to_s) end |
#aviary_image_update ⇒ Object
Aviary posts the edited image back to the controller here
54 55 56 57 58 |
# File 'lib/fleximage/aviary_controller.rb', line 54 def aviary_image_update @model.image_file_url = params[:imageurl] @model.save render :text => 'Image Updated From Aviary' end |