I have some code
# 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 says: Align the elements of a hash literal if they span more than one line.
collection: proc do
^^^^^^^^^^^^^^^^
What can I do with it?
I align :s and wrap the sections in
(cf https://github.com/bbatsov/rubocop#disabling-cops-within-source-code)
With your code: