Rename attending_social_events_with_partner

This commit is contained in:
Matt Barringer 2013-02-06 20:26:41 +01:00
parent a8e2cd4ef9
commit 077036d67c
5 changed files with 12 additions and 4 deletions

View file

@ -5,7 +5,7 @@ class Registration < ActiveRecord::Base
has_one :supporter_registration
attr_accessible :person_id, :conference_id, :attending_social_events, :attending_social_events_with_partner,
attr_accessible :person_id, :conference_id, :attending_social_events, :attending_with_partner,
:using_affiliated_lodging, :arrival, :departure, :person_attributes, :other_dietary_choice, :dietary_choice_id,
:handicapped_access_required, :supporter_registration_attributes

View file

@ -37,7 +37,7 @@
%td
= registration.attending_social_events
%td
= registration.attending_social_events_with_partner
= registration.attending_with_partner
%td
= registration.arrival
%td

View file

@ -23,7 +23,7 @@ prawn_document(:force_download=>true, :filename => @pdf_filename) do |pdf|
row << " "
end
if registration.attending_social_events_with_partner.to_s
if registration.attending_with_partner.to_s
row << "X"
else
row << " "

View file

@ -15,7 +15,7 @@
= f.fields_for :person do
= f.inputs :public_name, :for => :person
= f.input :attending_social_events, :label => false
= f.input :attending_social_events_with_partner, :label => false
= f.input :attending_with_partner, :label => false
= f.input :using_affiliated_lodging, :label => false
= f.input :handicapped_access_required, :label => false
= f.input :arrival, :as => :string, :input_html => {:value => (f.object.arrival.to_formatted_s(:db_without_seconds) unless f.object.arrival.nil?), :id => "conference-reg-start-datepicker", :readonly => "readonly" }

View file

@ -0,0 +1,8 @@
class RenameAttendingSocialEventsWithPartner < ActiveRecord::Migration
def up
rename_column :registrations, :attending_social_events_with_partner, :attending_with_partner
end
def down
end
end