run rubocp --fix

This commit is contained in:
Michael Ball 2021-02-24 09:47:56 -08:00
parent 1ca72dcf74
commit 2b2745ade9
26 changed files with 104 additions and 107 deletions

View file

@ -9,7 +9,7 @@ module Admin
def index
@events = Event.accessible_by(current_ability).where(program: @program,
state: [:confirmed, :unconfirmed])
state: [:confirmed, :unconfirmed])
@events_commercials = Commercial.where(commercialable_type: 'Event', commercialable_id: @events.pluck(:id))
@events_missing_commercial = @events.where.not(id: @events_commercials.pluck(:commercialable_id))
@events_with_requirements = @events.where.not(description: ['', nil])