lib/delorean/base.rb in delorean_lang-0.3.19 vs lib/delorean/base.rb in delorean_lang-0.3.20

- old
+ new

@@ -227,13 +227,11 @@ if obj.is_a?(Class) _e[:_engine].parse_check_call_fn(method, args.count, obj) return obj.send(msg, *args) end - sig = begin - obj.class.delorean_instance_methods[msg] - rescue NoMethodError - nil + if obj.class.include?(Delorean::Model) + sig = obj.class.delorean_instance_methods[msg] end sig = RUBY_WHITELIST[msg] unless sig raise "no such method #{method}" unless sig