speedmax (owner)

Revisions

gist: 126516 Download_button fork
public
Public Clone URL: git://gist.github.com/126516.git
Embed All Files: show embed
job_seek_model.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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