Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove annoying and useless meta comments

  • Loading branch information...
commit bdccffc40eee1e11b7e5f3516bffa4c46bf97b30 1 parent 2e9c775
Joshua Peek josh authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 activeresource/lib/active_resource/schema.rb
12 activeresource/lib/active_resource/schema.rb
View
@@ -43,12 +43,12 @@ def attribute(name, type, options = {})
# %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
Please sign in to comment.
Something went wrong with that request. Please try again.