diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-20 19:03:47 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-20 19:04:54 -0600 |
commit | bdccffc40eee1e11b7e5f3516bffa4c46bf97b30 (patch) | |
tree | aff5d7d2697582d17236fc81fe848ee3c0170366 /activeresource | |
parent | 2e9c7759984573944592fb1bda5aeb7c58edba55 (diff) | |
download | rails-bdccffc40eee1e11b7e5f3516bffa4c46bf97b30.tar.gz rails-bdccffc40eee1e11b7e5f3516bffa4c46bf97b30.tar.bz2 rails-bdccffc40eee1e11b7e5f3516bffa4c46bf97b30.zip |
Remove annoying and useless meta comments
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/lib/active_resource/schema.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/activeresource/lib/active_resource/schema.rb b/activeresource/lib/active_resource/schema.rb index 4ca83e404d..8368b652c2 100644 --- a/activeresource/lib/active_resource/schema.rb +++ b/activeresource/lib/active_resource/schema.rb @@ -43,12 +43,12 @@ module ActiveResource # :nodoc: # %w( string text integer float decimal datetime timestamp time date binary boolean ).each do |attr_type| KNOWN_ATTRIBUTE_TYPES.each do |attr_type| class_eval <<-EOV - def #{attr_type.to_s}(*args) # def string(*args) - options = args.extract_options! # options = args.extract_options! - attr_names = args # attr_names = args - # - attr_names.each { |name| attribute(name, '#{attr_type}', options) } # attr_names.each { |name| attribute(name, 'string', options) } - end # end + def #{attr_type.to_s}(*args) + options = args.extract_options! + attr_names = args + + attr_names.each { |name| attribute(name, '#{attr_type}', options) } + end EOV end end |