aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-20 19:03:47 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-20 19:04:54 -0600
commitbdccffc40eee1e11b7e5f3516bffa4c46bf97b30 (patch)
treeaff5d7d2697582d17236fc81fe848ee3c0170366 /activeresource
parent2e9c7759984573944592fb1bda5aeb7c58edba55 (diff)
downloadrails-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.rb12
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