ActiveRecord::Base
Grab the content of the selected page/post
# File lib/wpb/pagepost.rb, line 31 31: def content 32: post_content 33: end
Set the content of the selected page/post
# File lib/wpb/pagepost.rb, line 38 38: def content= new_content 39: self.post_content = new_content 40: end
# File lib/wpb/pagepost.rb, line 43 43: def set_default_values 44: t = Time.now 45: self.post_date = t 46: self.post_date_gmt = t.gmtime 47: 48: # Ready for when Site model is added 49: # site_url = Site.find_by_option_name "siteurl" 50: # type = 'p' 51: # if self.type == "Page" 52: # type << 'age_id' 53: # end 54: # self.guid = "#{site_url}/?#{type}=#{self.id}" 55: 56: urlify = self.post_title.dup.downcase.gsub(' ', '-') 57: self.post_name = urlify 58: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.