Sha256: 6b03a5edad951f6636c62aa3265c7152bfc520854f080dfeddbaaf3d02b951c0

Contents?: true

Size: 376 Bytes

Versions: 1

Compression:

Stored size: 376 Bytes

Contents

require "active_record"

class PagePost < ActiveRecord::Base
	set_table_name :wp_posts
	set_primary_key :ID
	
	before_save :update_date
	
	def update_date
		#TODO: update date_modified column
	end
	
	def title
		post_title
	end
	
	def title= new_title
		post_title = new_title
	end
	
	def body
		post_content
	end
	
	def body= new_content
		post_content = new_content
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wpb-0.0.2 lib/wpb/pagepost.rb