Skip to content

Instantly share code, notes, and snippets.

@speedmax
Created June 9, 2009 14:00
Show Gist options
  • Save speedmax/126516 to your computer and use it in GitHub Desktop.
Save speedmax/126516 to your computer and use it in GitHub Desktop.
class Resume < ActiveRecord::Base
# Attributes
# ================
# Resume(
# :person => Person, :position=> STRING, :summery => TEXT, :content => TEXT,
# :experiences => Experience, :qualifications => Qualification
# )
belongs_to :person
has_many :experiences
has_many :qualification
def summery_html
@summery_html ||= BlueCloth.new(self.summery).to_html
end
def content_html
@content_html ||= BlueCloth.new(self.content).to_html
end
end
class Experience < ActiveRecord::Base
belongs_to :organization
end
class Organization < ActiveRecord::Base
end
class Qualification < ActiveRecord::Base
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment