Refactoring: Agora o sistema se comporta bem com objetos excluidos

This commit is contained in:
2008-03-15 07:44:46 -03:00
parent 8d02e0d4ce
commit 4c55ce7b45
16 changed files with 114 additions and 96 deletions

View File

@@ -15,11 +15,14 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class LogEntry < ActiveRecord::Base
belongs_to :user
belongs_to :course
# Plugins
acts_as_paranoid
# Associacoes
belongs_to :course
belongs_to :user, :with_deleted => true
def reversible?() false end
def to_xml(options = {})