Class: Avocado::SpecsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/avocado/specs_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
# File 'app/controllers/avocado/specs_controller.rb', line 10

def create
  storage.write params[:file].read, upload_id
  storage.purge_old upload_id
  head :ok
end

#indexObject



6
7
8
# File 'app/controllers/avocado/specs_controller.rb', line 6

def index
  @data = storage.read
end