needs an id instead of the model

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@69 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2007-12-27 07:20:32 +00:00
parent d371d2b505
commit 5adeef34ba
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
# Bonuses: # Bonuses:
# * Uses RedCloth markup. # * Uses RedCloth markup.
# * Automatically converts/caches HTML # * Automatically converts/caches HTML
# * Allows any character or space in the name # * Allows any alphanumeric character or space in the name
# * Uses [[ and ]] for WikiWord representation. # * Uses [[ and ]] for WikiWord representation.
# #
class Page < ActiveRecord::Base class Page < ActiveRecord::Base
@ -74,7 +74,7 @@ class Page < ActiveRecord::Base
# #
def set_created_person def set_created_person
self[:created_by] = ApplicationController.current_people_id rescue nil self[:created_by] = ApplicationController.current_people_id rescue nil
self[:created_by] ||= People.penguincoder self[:created_by] ||= People.penguincoder.id
end end
## ##
@ -82,7 +82,7 @@ class Page < ActiveRecord::Base
# #
def set_updated_person def set_updated_person
self[:updated_by] = ApplicationController.current_people_id rescue nil self[:updated_by] = ApplicationController.current_people_id rescue nil
self[:updated_by] ||= People.penguincoder self[:updated_by] ||= People.penguincoder.id
end end
## ##