docbrown/app/controllers/admin/organizations_controller.rb
Andy Zhao 982658d3ab Remove switch organizations tab from settings and clear Rails cache for PUT /admin/organizations (#3045)
* Remove switch organization functionality

* Touch profile_updated_at when updating org
2019-06-05 19:01:34 -04:00

24 lines
668 B
Ruby

module Admin
class OrganizationsController < Admin::ApplicationController
# To customize the behavior of this controller,
# simply overwrite any of the RESTful actions. For example:
#
# def index
# super
# @resources = Organization.all.paginate(10, params[:page])
# end
def update
super
@requested_resource.touch(:profile_updated_at)
end
# Define a custom finder by overriding the `find_resource` method:
# def find_resource(param)
# Organization.find_by!(slug: param)
# end
# See https://administrate-docs.herokuapp.com/customizing_controller_actions
# for more information
end
end