我有一些代码
# Filters
filter :name
filter :email
filter :organization_status, label: 'Status'
filter :subscriptions_subscription_status_id,
as: :select,
label: 'Subscription Status',
collection: proc do
Organization
.includes(subscriptions: [:subscription_status])
.map(&:subscriptions)
.flatten
.map(&:subscription_status)
.uniq
end
Rubocop 说:如果散列文字的元素跨越多行,则对齐它们。
collection: proc do
^^^^^^^^^^^^^^^^
我能用它做什么?