d5bf57a6af
Enable frozen string in: * app/presenters * app/policies Partially addresses #47424.
21 lines
396 B
Ruby
21 lines
396 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ProjectPolicy
|
|
module ClassMethods
|
|
def create_read_update_admin_destroy(name)
|
|
[
|
|
:"read_#{name}",
|
|
*create_update_admin_destroy(name)
|
|
]
|
|
end
|
|
|
|
def create_update_admin_destroy(name)
|
|
[
|
|
:"create_#{name}",
|
|
:"update_#{name}",
|
|
:"admin_#{name}",
|
|
:"destroy_#{name}"
|
|
]
|
|
end
|
|
end
|
|
end
|