diff --git a/app/models/page.rb b/app/models/page.rb index 105e3a1c..cd5df208 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -11,6 +11,8 @@ class Page attr_accessor :revisions def initialize(web, name, content, created_at, author) + raise 'nil web' if web.nil? + raise 'nil name' if name.nil? @web, @name, @revisions = web, name, [] revise(content, created_at, author) end