Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Whitespaces

  • Loading branch information...
commit 0e5fb0ba9cccf511745e14f3eb6e9f408a1a827c 1 parent 8db0afe
@rafaelfranca rafaelfranca authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/validations/uniqueness.rb
View
4 activerecord/lib/active_record/validations/uniqueness.rb
@@ -13,7 +13,7 @@ def initialize(options)
def validate_each(record, attribute, value)
finder_class = find_finder_class_for(record)
table = finder_class.arel_table
- value = map_enum_attribute(finder_class,attribute,value)
+ value = map_enum_attribute(finder_class, attribute, value)
value = deserialize_attribute(record, attribute, value)
relation = build_relation(finder_class, table, attribute, value)
@@ -93,7 +93,7 @@ def deserialize_attribute(record, attribute, value)
value
end
- def map_enum_attribute(klass,attribute,value)
+ def map_enum_attribute(klass, attribute, value)
mapping = klass.enum_mapping_for(attribute.to_s)
value = mapping[value] if value && mapping
value
Please sign in to comment.
Something went wrong with that request. Please try again.