Sha256: f918cc72f567da26daa98b34c9c3292b1868681df17a0b148369c9523ed686c8
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
require "active_record" class User < ActiveRecord::Base set_table_name :wp_users set_primary_key :ID has_many :settings has_many :pages, :foreign_key => :post_author has_many :posts, :foreign_key => :post_author def name display_name end def name= name display_name = name end def username user_login end def username= username user_login = username end def email user_email end def email= email user_email = email end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wpb-0.0.2 | lib/wpb/user.rb |