Solves rails 3 protected attributes issue