Created
June 9, 2009 14:00
-
-
Save speedmax/126516 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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