Rails 3 fixes for acts_as_wiki

Replaces write_inheritable_attribute (deprecated in Rails 3.1, removed in 3.2)