lib/selections/belongs_to_selection.rb in selections-1.0.5 vs lib/selections/belongs_to_selection.rb in selections-1.1.0

- old
+ new

@@ -34,10 +34,10 @@ target_id = "#{target}_id".to_sym parent.children.each do |s| method_name = "#{s.system_code.sub("#{prefix}_", '')}?".to_sym class_eval do define_method method_name do - send(target_id) == s.id + send(target_id).to_i == s.id end end end end end