add skipped empty lines
This commit is contained in:
parent
cdd3b40f5b
commit
494003892c
31 changed files with 37 additions and 29 deletions
|
|
@ -96,4 +96,4 @@ class Datatable
|
|||
index = "sSortDir_#{index}"
|
||||
params[index] == "desc" ? "desc" : "asc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ class DifficultyLevel < ActiveRecord::Base
|
|||
has_many :events
|
||||
|
||||
validates :title, :presence => true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
9
app/models/event_person.rb
Normal file
9
app/models/event_person.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class EventPerson < ActiveRecord::Base
|
||||
attr_accessible :event, :person, :person_id, :event_role
|
||||
# TODO Do we need these roles?
|
||||
ROLES = [["Speaker","speaker"], ["Submitter","submitter"], ["Moderator","moderator"]]
|
||||
|
||||
belongs_to :event
|
||||
belongs_to :person
|
||||
end
|
||||
|
||||
|
|
@ -11,4 +11,4 @@ class Question < ActiveRecord::Base
|
|||
validates :answers, :presence => true
|
||||
|
||||
accepts_nested_attributes_for :answers, :allow_destroy => true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
class Role < ActiveRecord::Base
|
||||
attr_accessible :name
|
||||
has_and_belongs_to_many :users
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -16,4 +16,4 @@ class Room < ActiveRecord::Base
|
|||
self.guid = guid
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ class SocialEvent < ActiveRecord::Base
|
|||
|
||||
belongs_to :conference
|
||||
has_and_belongs_to_many :registrations
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@ class Track < ActiveRecord::Base
|
|||
self.guid = guid
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ class Vday < ActiveRecord::Base
|
|||
|
||||
has_many :vchoices
|
||||
has_many :vpositions, :through => :vchoices, :dependent => :destroy
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ class Vote < ActiveRecord::Base
|
|||
|
||||
belongs_to :user
|
||||
belongs_to :event
|
||||
|
||||
delegate :name, to: :user
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue