Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
Allow EssenceTrackIdentifierSource to be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
aviflombaum committed Apr 12, 2012
1 parent 6492f0a commit 1c121e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/essence_track_identifier_source.rb
Expand Up @@ -4,6 +4,11 @@ class EssenceTrackIdentifierSource < ActiveRecord::Base
quick_column :name quick_column :name


def safe_to_delete? def safe_to_delete?
essence_tracks.size == 0 # This throws an AR exception; Essence Tracks do not belong
# to Essence Tracker Identifier Sources.
# This is preventing deleting EssenceTrackIdentifierSources
# so going to default to true.
# essence_tracks.size == 0
true
end end
end end

0 comments on commit 1c121e0

Please sign in to comment.