Class: Droom::ServicesController

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

Instance Method Summary collapse

Methods inherited from EngineController

#current_ability

Instance Method Details

#createObject



24
25
26
27
# File 'app/controllers/droom/services_controller.rb', line 24

def create
  @service.update_attributes(service_params)
  respond_with @service
end

#destroyObject



38
39
40
41
# File 'app/controllers/droom/services_controller.rb', line 38

def destroy
  @service.destroy
  head :ok
end

#editObject



29
30
31
# File 'app/controllers/droom/services_controller.rb', line 29

def edit
  respond_with @service
end

#indexObject



8
9
10
11
12
13
14
# File 'app/controllers/droom/services_controller.rb', line 8

def index
  @groups = Droom::Group.all
  @group_permissions = Droom::GroupPermission.by_group_id
  respond_with(@services) do |format|
    format.js { render :partial => 'droom/services/services' }
  end
end

#newObject



20
21
22
# File 'app/controllers/droom/services_controller.rb', line 20

def new
  respond_with @service
end

#showObject



16
17
18
# File 'app/controllers/droom/services_controller.rb', line 16

def show
  respond_with @service
end

#updateObject



33
34
35
36
# File 'app/controllers/droom/services_controller.rb', line 33

def update
  @service.update_attributes(service_params)
  respond_with @service
end