Permalink
Browse files

Allow EssenceTrackIdentifierSource to be deleted

  • Loading branch information...
1 parent 6492f0a commit 1c121e0e6c26bfb57eb1631f3815a22bcf094ff8 @aviflombaum aviflombaum committed Apr 12, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/models/essence_track_identifier_source.rb
@@ -4,6 +4,11 @@ class EssenceTrackIdentifierSource < ActiveRecord::Base
quick_column :name
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

0 comments on commit 1c121e0

Please sign in to comment.