Class: Droom::OrganisationsController

Inherits:
EngineController show all
Defined in:
app/controllers/droom/organisations_controller.rb

Instance Method Summary collapse

Methods inherited from EngineController

#current_ability

Instance Method Details

#createObject



8
9
10
11
# File 'app/controllers/droom/organisations_controller.rb', line 8

def create
  @organisation.update_attributes(organisation_params)
  respond_with @organisation
end

#destroyObject



22
23
24
25
# File 'app/controllers/droom/organisations_controller.rb', line 22

def destroy
  @organisation.destroy
  head :ok
end

#showObject



18
19
20
# File 'app/controllers/droom/organisations_controller.rb', line 18

def show
  respond_with @organisation
end

#updateObject



13
14
15
16
# File 'app/controllers/droom/organisations_controller.rb', line 13

def update
  @organisation.update_attributes(organisation_params)
  respond_with @organisation
end