Skip to content
Browse files

Removed redundant comments

* In general the reason for factoring out complex logic into named methods is
  to remove the need for comments like this. If the method is well named then
  the command is completely redundant.
  • Loading branch information...
1 parent 67918e6 commit 34df0e543f71c0c5f9d82c969008c9345befd596 @dkubb dkubb committed Jul 8, 2011
Showing with 0 additions and 6 deletions.
  1. +0 −6 lib/virtus/attribute.rb
View
6 lib/virtus/attribute.rb
@@ -118,15 +118,9 @@ def self.accepted_options
#
# @api public
def self.accept_options(*new_options)
- # add new options to the array
concat_options(new_options)
-
- # create methods for each new option
new_options.each { |option| add_option_method(option) }
-
- # add new options to all descendants
descendants.each { |descendant| descendant.concat_options(new_options) }
-
accepted_options
end

0 comments on commit 34df0e5

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