We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
class_eval
1 parent b87d8e5 commit f9468adCopy full SHA for f9468ad
activerecord/lib/active_record/runtime_registry.rb
@@ -16,9 +16,7 @@ class RuntimeRegistry # :nodoc:
16
17
attr_accessor :sql_runtime
18
19
- [:sql_runtime].each do |val|
20
- class_eval %{ def self.#{val}; instance.#{val}; end }, __FILE__, __LINE__
21
- class_eval %{ def self.#{val}=(x); instance.#{val}=x; end }, __FILE__, __LINE__
22
- end
+ def self.sql_runtime; instance.sql_runtime; end
+ def self.sql_runtime=(x); instance.sql_runtime = x; end
23
end
24
0 commit comments