Method: Onoma::Nomenclature#select_without
- Defined in:
- lib/onoma/nomenclature.rb
#select_without(already_imported) ⇒ Object
Returns a list for select, without specified items
403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/onoma/nomenclature.rb', line 403 def select_without(already_imported) ActiveSupport::Deprecation.warn 'Onoma::Nomenclature#select_without method is deprecated. Please use Onoma::Nomenclature#without method instead.' = @items.values.collect do |item| [item.human_name, item.name.to_s] unless already_imported[item.name.to_s] end .compact! .sort! do |a, b| a.first <=> b.first end end |