Program component for splash page
This commit is contained in:
parent
a33e930111
commit
d0fd21bfc2
18 changed files with 118 additions and 11 deletions
|
|
@ -9,7 +9,7 @@ class Conference < ActiveRecord::Base
|
|||
:questions_attributes, :question_ids, :answers_attributes, :answer_ids,
|
||||
:difficulty_levels_attributes, :use_difficulty_levels,
|
||||
:use_vpositions, :use_vdays, :vdays_attributes, :vpositions_attributes, :use_volunteers,
|
||||
:media_id, :media_type
|
||||
:media_id, :media_type, :description
|
||||
|
||||
has_paper_trail
|
||||
|
||||
|
|
@ -57,7 +57,8 @@ class Conference < ActiveRecord::Base
|
|||
:short_title,
|
||||
:social_tag,
|
||||
:start_date,
|
||||
:end_date
|
||||
:end_date,
|
||||
:description
|
||||
validates_uniqueness_of :short_title
|
||||
validates_format_of :short_title, :with => /\A[a-zA-Z0-9_-]*\z/
|
||||
before_create :generate_guid
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@ class Person < ActiveRecord::Base
|
|||
include Gravtastic
|
||||
gravtastic :size => 32
|
||||
|
||||
attr_accessible :email, :first_name, :last_name, :public_name, :biography, :company, :avatar, :irc_nickname, :mobile, :tshirt, :languages, :volunteer_experience
|
||||
attr_accessible :email, :first_name, :last_name, :public_name, :biography,
|
||||
:company, :avatar, :irc_nickname, :mobile, :tshirt,
|
||||
:languages, :volunteer_experience, :featured
|
||||
|
||||
belongs_to :user, :inverse_of => :person
|
||||
has_many :event_people, :dependent => :destroy
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
class Track < ActiveRecord::Base
|
||||
attr_accessible :name, :description, :color
|
||||
|
||||
validates :description, presence: true
|
||||
belongs_to :conference
|
||||
|
||||
before_create :generate_guid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue