Fix basic style issues with rubocop

This commit is contained in:
Artem Chernikov 2014-07-21 14:27:32 +02:00
parent f4a22851a1
commit 763f864dc9
36 changed files with 108 additions and 143 deletions

View file

@ -15,5 +15,4 @@ class CreateVenueTable < ActiveRecord::Migration
def down
drop_table :venues
end
end

View file

@ -12,7 +12,6 @@ class CreateEmailTable < ActiveRecord::Migration
t.text :confirmed_email_template
t.timestamps
end
end
def down

View file

@ -2,6 +2,7 @@ class ChangeAttachmentDefault < ActiveRecord::Migration
def up
change_column_default(:event_attachments, :public, true)
end
def down
change_column_default(:event_attachments, :public, nil)
end

View file

@ -1,6 +1,6 @@
class RegistrationsVchoices < ActiveRecord::Migration
def up
create_table :registrations_vchoices, :id => false do |t|
create_table :registrations_vchoices, :id => false do |t|
t.references :registration, :vchoice
end
end

View file

@ -30,6 +30,5 @@ class CreateEventUsers < ActiveRecord::Migration
record.comment = ep.comment
record.save!
end
end
end

View file

@ -65,10 +65,9 @@ class AddEventsPerWeekToConference < ActiveRecord::Migration
conference.save
end
# Cumulate the previous weeks to get a snapshot
TempConference.all.each do |conference|
hash = conference.events_per_week.sort.to_h
hash = conference.events_per_week.sort.to_hash
previous = nil
hash.each do |week, values|

View file

@ -18,7 +18,7 @@ answer_no = Answer.create(:title => "No")
questions_yes_no = ["Do you need handicapped access to the venue?", "Are you attending with partner?", "Will you attend the social event(s)?", "Will you stay at suggested hotel?"]
for i in questions_yes_no do
questions_yes_no.each do |i|
q = Question.create(:title => i, :question_type_id => qtype_yesno.id, :global => true)
Qanswer.create(:question_id => q.id, :answer_id => answer_no.id)