aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/organisations_controller.rb
blob: 7e2edb22040b300e76c959a0e37771ba95dcb3f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class OrganisationsController < InheritedResources::Base
  respond_to :html

  def update
    update! do |success, failure|
      success.html { redirect_to organisation_path }
    end
  end

  private

  def resource
    @organisation = current_organisation
  end
end