lib/ar_enums/enum.rb in ar-enums-0.3.6 vs lib/ar_enums/enum.rb in ar-enums-0.3.7
- old
+ new
@@ -42,10 +42,10 @@
def self.[] name_or_id
all.detect { |enum| enum == name_or_id }
end
- def self.find_all_by_id ids
+ def self.find_all_by_id ids, options = {}
all.select { |enum| ids.include? enum.id }
end
def in? *enums
enums.any? { |e| self == e }