SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 254 forks source link

Do not destroy associated user on destroy RedactorRails::Asset models #71

Closed VladimirMikhailov closed 11 years ago

VladimirMikhailov commented 11 years ago
class RedactorRails::Asset
  belongs_to :user, :dependent => :destroy
end

RedactorRails::Asset.destroy_all

the code above destroys users, associated with the RedactorRails::Asset models. Fixed

jeremyhaile commented 11 years ago

@SammyLin why haven't you merged this fix?

SammyLin commented 11 years ago

@jeremyhaile done :)

jeremyhaile commented 11 years ago

Thanks @SammyLin!