Utilize attr_accessible if defined for the model

In Rails 4.0, attr_accessible was moved to a plugin, this will test if accessible_attributes is defined before trying to add it.