Conditionally use attr_accessible to support Rails 4