Skip to content
Browse files

remove irrelevant comments

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent 0bffd7d commit 8ae913664ff721e10dfc2c057998a38fd6f76edf Neeraj Singh committed with josevalim Sep 10, 2010
Showing with 0 additions and 2 deletions.
  1. +0 −2 activemodel/lib/active_model/validations/acceptance.rb
View
2 activemodel/lib/active_model/validations/acceptance.rb
@@ -14,8 +14,6 @@ def validate_each(record, attribute, value)
end
def setup(klass)
- # Note: instance_methods.map(&:to_s) is important for 1.9 compatibility
- # as instance_methods returns symbols unlike 1.8 which returns strings.
attr_readers = attributes.reject { |name| klass.attribute_method?(name) }
attr_writers = attributes.reject { |name| klass.attribute_method?("#{name}=") }
klass.send(:attr_reader, *attr_readers)

0 comments on commit 8ae9136

Please sign in to comment.
Something went wrong with that request. Please try again.