Fixes Style/Tab cops

Removes exclusions for Style/Tab cops in rubocop_todo
Places Style/Tab cop in appropriate alphabetical order
All cops now fixed.
This commit is contained in:
Cody Borders 2017-04-04 11:48:52 -06:00
parent e28d681eb8
commit 535b3f86d6
8 changed files with 26 additions and 33 deletions

View file

@ -75,11 +75,11 @@ class AddRequireHandicappedAccessToQuestions < ActiveRecord::Migration
TempConferencesQuestions.find_or_create_by!(conference_id: c.id, question_id: q.id)
TempRegistration.where(conference_id: c.id).each do |r|
if r.handicapped_access_required
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
if r.handicapped_access_required
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
end
end
remove_column :registrations, :handicapped_access_required, :boolean

View file

@ -75,11 +75,11 @@ class AddAttendingWithPartnerToQuestions < ActiveRecord::Migration
TempConferencesQuestions.find_or_create_by!(conference_id: c.id, question_id: q.id)
TempRegistration.where(conference_id: c.id).each do |r|
if r.attending_with_partner
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
if r.attending_with_partner
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
end
end
remove_column :registrations, :attending_with_partner, :boolean

View file

@ -75,11 +75,11 @@ class AddStayingAtSuggestedHotelToQuestions < ActiveRecord::Migration
TempConferencesQuestions.find_or_create_by!(conference_id: c.id, question_id: q.id)
TempRegistration.where(conference_id: c.id).each do |r|
if r.using_affiliated_lodging
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
if r.using_affiliated_lodging
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
end
end
remove_column :registrations, :using_affiliated_lodging, :boolean

View file

@ -75,11 +75,11 @@ class AddAttendingSocialEventsToQuestions < ActiveRecord::Migration
TempConferencesQuestions.find_or_create_by!(conference_id: c.id, question_id: q.id)
TempRegistration.where(conference_id: c.id).each do |r|
if r.attending_social_events
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
if r.attending_social_events
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_yes.id)
else
TempQanswerRegistration.find_or_create_by!(registration_id: r.id, qanswer_id: qa_no.id)
end
end
end
remove_column :registrations, :attending_social_events, :boolean

View file

@ -21,7 +21,7 @@ class ChangeLodgingAssociationToConference < ActiveRecord::Migration
venue = TempVenue.find_by(conference_id: conference.id)
lodgings = TempLodging.where(venue_id: venue.id)
lodgings.each do |lodging|
lodging.update_attributes(conference_id: conference.id)
lodging.update_attributes(conference_id: conference.id)
end
end
end