Class: Avocado::SpecsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Avocado::SpecsController
- Defined in:
- app/controllers/avocado/specs_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/avocado/specs_controller.rb', line 9 def create storage.write params[:file].read, upload_id storage.purge_old upload_id head :ok end |
#index ⇒ Object
5 6 7 |
# File 'app/controllers/avocado/specs_controller.rb', line 5 def index @data = storage.read end |