Module: AbAdmin::Models::Track::ClassMethods

Defined in:
lib/ab_admin/models/track.rb

Instance Method Summary collapse

Instance Method Details

#import_from_batch_collection_action(tracks) ⇒ Object


26
27
28
29
30
31
32
# File 'lib/ab_admin/models/track.rb', line 26

def import_from_batch_collection_action(tracks)
  tracks.each do |track|
    track.run_callbacks(:save) { false }
    track.run_callbacks(:create) { false }
  end
  ::Track.import(tracks)
end