Skip to content

Commit 3024155

Browse files
authored
Merge branch 'master' into add-admin-instructions
2 parents c0ddf74 + 4f5cd2d commit 3024155

18 files changed

+46
-33
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ group :production do
8383
end
8484

8585
gem 'newrelic_rpm'
86-
gem 'rubocop', '~> 0.74.0'
86+
gem 'rubocop', '~> 0.75.1'
8787
gem 'rollbar'

Gemfile.lock

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ GEM
114114
term-ansicolor (~> 1.3)
115115
thor (>= 0.19.4, < 2.0)
116116
tins (~> 1.6)
117-
crass (1.0.4)
117+
crass (1.0.5)
118118
css_parser (1.7.0)
119119
addressable
120120
database_cleaner (1.7.0)
@@ -222,8 +222,8 @@ GEM
222222
omniauth-oauth2 (1.6.0)
223223
oauth2 (~> 1.1)
224224
omniauth (~> 1.9)
225-
parallel (1.17.0)
226-
parser (2.6.4.0)
225+
parallel (1.18.0)
226+
parser (2.6.5.0)
227227
ast (~> 2.4.0)
228228
pg (0.20.0)
229229
pickadate-rails (3.5.6.0)
@@ -294,27 +294,27 @@ GEM
294294
rollbar (2.22.1)
295295
rspec-collection_matchers (1.2.0)
296296
rspec-expectations (>= 2.99.0.beta1)
297-
rspec-core (3.8.0)
298-
rspec-support (~> 3.8.0)
299-
rspec-expectations (3.8.4)
297+
rspec-core (3.9.0)
298+
rspec-support (~> 3.9.0)
299+
rspec-expectations (3.9.0)
300300
diff-lcs (>= 1.2.0, < 2.0)
301-
rspec-support (~> 3.8.0)
301+
rspec-support (~> 3.9.0)
302302
rspec-its (1.3.0)
303303
rspec-core (>= 3.0.0)
304304
rspec-expectations (>= 3.0.0)
305-
rspec-mocks (3.8.0)
305+
rspec-mocks (3.9.0)
306306
diff-lcs (>= 1.2.0, < 2.0)
307-
rspec-support (~> 3.8.0)
308-
rspec-rails (3.8.2)
307+
rspec-support (~> 3.9.0)
308+
rspec-rails (3.9.0)
309309
actionpack (>= 3.0)
310310
activesupport (>= 3.0)
311311
railties (>= 3.0)
312-
rspec-core (~> 3.8.0)
313-
rspec-expectations (~> 3.8.0)
314-
rspec-mocks (~> 3.8.0)
315-
rspec-support (~> 3.8.0)
316-
rspec-support (3.8.2)
317-
rubocop (0.74.0)
312+
rspec-core (~> 3.9.0)
313+
rspec-expectations (~> 3.9.0)
314+
rspec-mocks (~> 3.9.0)
315+
rspec-support (~> 3.9.0)
316+
rspec-support (3.9.0)
317+
rubocop (0.75.1)
318318
jaro_winkler (~> 1.5.1)
319319
parallel (~> 1.10)
320320
parser (>= 2.6)
@@ -434,7 +434,7 @@ DEPENDENCIES
434434
rspec-collection_matchers
435435
rspec-its
436436
rspec-rails
437-
rubocop (~> 0.74.0)
437+
rubocop (~> 0.75.1)
438438
sass-rails (~> 5.0.1)
439439
selenium-webdriver
440440
shoulda-matchers (~> 4.1)

app/controllers/admin/announcements_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def create
1717
end
1818

1919
def update
20-
@announcement.update_attributes(announcement_params)
20+
@announcement.update(announcement_params)
2121
redirect_to admin_announcements_path, notice: 'Announcement successfully updated'
2222
end
2323

app/controllers/admin/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def show
3434
def update
3535
set_organisers(organiser_ids)
3636

37-
if @event.update_attributes(event_params)
37+
if @event.update(event_params)
3838
redirect_to [:admin, @event], notice: 'You have just updated the event'
3939
else
4040
render 'edit', notice: 'Error'

app/controllers/admin/meeting_invitations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def update
55
status = params.permit(:attendance_status)[:attendance_status]
66
attended = params.permit(:attended)[:attended]
77

8-
@invitation.update_attributes(attending: status, attended: attended)
8+
@invitation.update(attending: status, attended: attended)
99

1010
return redirect_to [:admin, @invitation.meeting],
1111
notice: t('admin.messages.invitation.update_rsvp', name: @invitation.member.full_name)

app/controllers/admin/meetings_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def update
3030
set_organisers(organiser_ids)
3131
set_chapters(chapter_ids)
3232

33-
if @meeting.update_attributes(meeting_params)
33+
if @meeting.update(meeting_params)
3434
redirect_to [:admin, @meeting], notice: t('admin.messages.meeting.updated')
3535
else
3636
flash[:notice] = @meeting.errors.full_messages.join('<br/>')

app/controllers/admin/sponsors_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def edit
3636
end
3737

3838
def update
39-
@sponsor.update_attributes(sponsor_params)
39+
@sponsor.update(sponsor_params)
4040
redirect_to admin_sponsor_path(@sponsor), notice: 'Updated!'
4141
end
4242

app/controllers/admin/workshops_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def update
5050
@workshop = Workshop.find(params[:id])
5151
authorize @workshop
5252

53-
@workshop.update_attributes(workshop_params)
53+
@workshop.update(workshop_params)
5454

5555
set_organisers(organiser_ids)
5656
set_host(host_id)

app/controllers/concerns/invitation_controller_concerns.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def accept
2323

2424
@workshop = WorkshopPresenter.new(@invitation.workshop)
2525
if (@invitation.for_student? && @workshop.student_spaces?) || (@invitation.for_coach? && @workshop.coach_spaces?)
26-
@invitation.update_attributes(attending: true, rsvp_time: Time.zone.now)
26+
@invitation.update(attending: true, rsvp_time: Time.zone.now)
2727
@invitation.waiting_list.destroy if @invitation.waiting_list.present?
2828
WorkshopInvitationMailer.attending(@invitation.workshop,
2929
@invitation.member,

app/controllers/events_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def rsvp
5151
invitation = member.invitations.where(event: @event, role: 'Student').try(:first)
5252
invitation ||= Invitation.create(event: @event, member: member, role: 'Student')
5353

54-
invitation.update_attributes attending: true
54+
invitation.update(attending: true)
5555
head :ok
5656
end
5757

0 commit comments

Comments
 (0)