aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
blob: 6f776e938f567ae39ee46e5ecf252a18be92a2c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class UsersController < BreadcrumbController

  defaults :resource_class => User
  respond_to :html, :only => [:show]
  
  def destroy
    destroy! do |success, failure|
      success.html { redirect_to organisation_path }
    end
  end  

  protected

  def begin_of_association_chain
    current_organisation
  end

end