diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-15 18:19:31 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-01-15 18:19:32 +0530 |
commit | 85629c83af7d0d67d483174d836dc6daf1196e7b (patch) | |
tree | adbc4e5f6ebc93ea65acc395d958015ad83b277d /railties/lib/rails/generators | |
parent | b435ea9570f6f7883d93c2e87add454d0df380f3 (diff) | |
download | rails-85629c83af7d0d67d483174d836dc6daf1196e7b.tar.gz rails-85629c83af7d0d67d483174d836dc6daf1196e7b.tar.bz2 rails-85629c83af7d0d67d483174d836dc6daf1196e7b.zip |
fix a broken test
The commit 2f632f53919d2b44dbb2cfaadabed2310319f005 extracted the
options into constants and while doing so, there was a minor error of
using a wrong constant name.
Diffstat (limited to 'railties/lib/rails/generators')
-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 b95f677275..96997021ee 100644 --- a/railties/lib/rails/generators/generated_attribute.rb +++ b/railties/lib/rails/generators/generated_attribute.rb @@ -18,7 +18,7 @@ module Rails # if user provided "name:index" instead of "name:string:index" # type should be set blank so GeneratedAttribute's constructor # could set it to :string - has_index, type = type, nil if UNIQ_INDEX_OPTIONS.include?(type) + has_index, type = type, nil if INDEX_OPTIONS.include?(type) type, attr_options = *parse_type_and_options(type) new(name, type, has_index, attr_options) |