Class: PagePost
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PagePost
- Defined in:
- lib/wpb/pagepost.rb
Instance Method Summary collapse
- #body ⇒ Object
- #body=(new_content) ⇒ Object
- #title ⇒ Object
- #title=(new_title) ⇒ Object
- #update_date ⇒ Object
Instance Method Details
#body ⇒ Object
21 22 23 |
# File 'lib/wpb/pagepost.rb', line 21 def body post_content end |
#body=(new_content) ⇒ Object
25 26 27 |
# File 'lib/wpb/pagepost.rb', line 25 def body= new_content post_content = new_content end |
#title ⇒ Object
13 14 15 |
# File 'lib/wpb/pagepost.rb', line 13 def title post_title end |
#title=(new_title) ⇒ Object
17 18 19 |
# File 'lib/wpb/pagepost.rb', line 17 def title= new_title post_title = new_title end |
#update_date ⇒ Object
9 10 11 |
# File 'lib/wpb/pagepost.rb', line 9 def update_date #TODO: update date_modified column end |