aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-12 14:15:01 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-03-12 14:15:01 -0700
commit7169e4c71572cb96fa01317edf7b6c8ba9565f8e (patch)
tree7541e456395e9206236f490e7d242adaa052ae24 /activesupport
parented9e3f699ab3fac01ad9ef038847d1cdd4c9f063 (diff)
downloadrails-7169e4c71572cb96fa01317edf7b6c8ba9565f8e.tar.gz
rails-7169e4c71572cb96fa01317edf7b6c8ba9565f8e.tar.bz2
rails-7169e4c71572cb96fa01317edf7b6c8ba9565f8e.zip
removing out of date comment. :heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart: @pixeltrix
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/class/attribute.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/core_ext/class/attribute.rb b/activesupport/lib/active_support/core_ext/class/attribute.rb
index 23c174a231..e51ab9ddbc 100644
--- a/activesupport/lib/active_support/core_ext/class/attribute.rb
+++ b/activesupport/lib/active_support/core_ext/class/attribute.rb
@@ -73,9 +73,6 @@ class Class
instance_reader = instance_reader = options.fetch(:instance_accessor, true) && options.fetch(:instance_reader, true)
instance_writer = options.fetch(:instance_accessor, true) && options.fetch(:instance_writer, true)
- # We use class_eval here rather than define_method because class_attribute
- # may be used in a performance sensitive context therefore the overhead that
- # define_method introduces may become significant.
attrs.each do |name|
define_singleton_method(name) { nil }
define_singleton_method("#{name}?") { !!public_send(name) }