diff options
author | José Valim <jose.valim@gmail.com> | 2011-12-24 21:57:42 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-12-24 22:00:40 +0100 |
commit | bea3524e3f5a56e4dc87ae240a2c58301e73a128 (patch) | |
tree | 112ef9a1e8fb4d220084af9d60ec98925c23ae77 /railties/lib | |
parent | a410a9c8f7197bc321e1adde46fa98af8a2176ad (diff) | |
download | rails-bea3524e3f5a56e4dc87ae240a2c58301e73a128.tar.gz rails-bea3524e3f5a56e4dc87ae240a2c58301e73a128.tar.bz2 rails-bea3524e3f5a56e4dc87ae240a2c58301e73a128.zip |
Last attempt to fix 1.8.7 tests.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/generated_attribute.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/generated_attribute.rb b/railties/lib/rails/generators/generated_attribute.rb index 964bd6280c..cfd58527ef 100644 --- a/railties/lib/rails/generators/generated_attribute.rb +++ b/railties/lib/rails/generators/generated_attribute.rb @@ -96,7 +96,7 @@ module Rails end def inject_options - @attr_options.blank? ? '' : ", #{@attr_options.to_s.gsub(/[{}]/, '')}" + "".tap { |s| @attr_options.each { |k,v| s << ", :#{k} => #{v.inspect}" } } end def inject_index_options |