Skip to content

Commit 8d96dd9

Browse files
committed
Remove comments
1 parent b845a0a commit 8d96dd9

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed
Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,14 @@
11
module Admin
22
class ProgrammeActivityGroupingsController < Admin::ApplicationController
3-
# Overwrite any of the RESTful controller actions to implement custom behavior
4-
# For example, you may want to send an email after a foo is updated.
5-
#
6-
# def update
7-
# super
8-
# send_foo_updated_email(requested_resource)
9-
# end
10-
11-
# Override this method to specify custom lookup behavior.
12-
# This will be used to set the resource for the `show`, `edit`, and `update`
13-
# actions.
14-
#
153
def find_resource(param)
164
ProgrammeActivityGrouping.find_by!(id: param)
175
end
186

19-
# The result of this lookup will be available as `requested_resource`
20-
21-
# Override this if you have certain roles that require a subset
22-
# this will be used to set the records shown on the `index` action.
23-
#
24-
# def scoped_resource
25-
# if current_user.super_admin?
26-
# resource_class
27-
# else
28-
# resource_class.with_less_stuff
29-
# end
30-
# end
31-
32-
# Override `resource_params` if you want to transform the submitted
33-
# data before it's persisted. For example, the following would turn all
34-
# empty values into nil values. It uses other APIs such as `resource_class`
35-
# and `dashboard`:
36-
#
377
def resource_params
388
params.require(resource_class.model_name.param_key).permit(
399
dashboard.permitted_attributes(action_name),
4010
web_copy: {}
4111
)
4212
end
43-
44-
# See https://administrate-demo.herokuapp.com/customizing_controller_actions
45-
# for more information
4613
end
4714
end

0 commit comments

Comments
 (0)