Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow EssenceTrackIdentifierSource to be deleted

  • Loading branch information...
commit 1c121e0e6c26bfb57eb1631f3815a22bcf094ff8 1 parent 6492f0a
@aviflombaum aviflombaum authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/models/essence_track_identifier_source.rb
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.