Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

let's not use `and` in place of `&&`

  • Loading branch information...
commit 3b0ffb1efd9d70bf89571d720d994425ba428419 1 parent 5b336ff
@vijaydev vijaydev authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/generators/generated_attribute.rb
View
2  railties/lib/rails/generators/generated_attribute.rb
@@ -22,7 +22,7 @@ def parse(column_definition)
type, attr_options = *parse_type_and_options(type)
- references_index = (type.in?(%w(references belongs_to)) and UNIQ_INDEX_OPTIONS.include?(has_index) ? {:unique => true} : true)
+ references_index = type.in?(%w(references belongs_to)) && UNIQ_INDEX_OPTIONS.include?(has_index) ? {:unique => true} : true
attr_options.merge!({:index => references_index}) if references_index
new(name, type, has_index, attr_options)
Please sign in to comment.
Something went wrong with that request. Please try again.