resolve/refinerycms — pull request #1829 by kandadaboggu (2012-07-18 06:42:21+00:00)
Title: Initialized the @page variable in the before filter for preview action

The `@page` variable is getting initialized in the `preview` action rather than a `before` filter. This causes null pointer exceptions when a page controller decorator tries to access the `@page` variable for `preview` action.

Changed the code as per solution proposed in the Refinery group discussion: https://groups.google.com/forum/?fromgroups#!topic/refinery-cms/GO1u1JWymWo