validates :working_panel_id, :numericality => {:allow_nil => true}
validates :user_id, :numericality => true, :existence => {:both => false}
- def self.singular
- 'Author'
- end
-
- def self.plural
- 'Authors'
- end
-
- def self.owner_type
- :author
- end
-
def self.valid_encode_columns
- super.merge ['name']
+ super + ['name']
end
def supply_default