search for: moderatorcontroller

Displaying 1 result from an estimated 1 matches for "moderatorcontroller".

2006 Jan 11
17
Different Types of Users and User Engine
...single table inheritance in order to derive several different types of users, such as "moderators," "editors," etc ... For example, let''s say that I want to create a moderator. I define a new moderator class and Controller like so: class Moderator < User end class ModeratorController < UserController end My problem with this is that since several functions such as "login," "signup" and others directly call the User class. I cannot simply inherit the ModeratorController from UserController without overriding everyone of these functions and changing every...