Project

General

Profile

« Previous | Next » 

Revision 4d72215c

Added by Ohad Levy over 11 years ago

  • ID 4d72215cd0166fc82e77a8b4d7b1dc25ebfc9b08

ensures that validation does not get triggered for new taxonomy objects

View differences:

app/models/taxonomy.rb
scoped_search :on => :name, :complete_value => true
validate :check_for_orphans
validate :check_for_orphans, :unless => Proc.new {|t| t.new_record?}
before_validation :sanitize_ignored_types
delegate :import_missing_ids, :to => :tax_host

Also available in: Unified diff