make #action_has_layout? return true as @thedarkone suggests and deprecate #action_has_layout=.