Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 3b0ffb1efd9d70bf89571d720d994425ba428419 1 parent 5b336ff
Vijay Dev authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/lib/rails/generators/generated_attribute.rb
2  railties/lib/rails/generators/generated_attribute.rb
@@ -22,7 +22,7 @@ def parse(column_definition)
22 22
23 23 type, attr_options = *parse_type_and_options(type)
24 24
25   - references_index = (type.in?(%w(references belongs_to)) and UNIQ_INDEX_OPTIONS.include?(has_index) ? {:unique => true} : true)
  25 + references_index = type.in?(%w(references belongs_to)) && UNIQ_INDEX_OPTIONS.include?(has_index) ? {:unique => true} : true
26 26 attr_options.merge!({:index => references_index}) if references_index
27 27
28 28 new(name, type, has_index, attr_options)

0 comments on commit 3b0ffb1

Please sign in to comment.
Something went wrong with that request. Please try again.