Permalink
Browse files

Whitespaces

  • Loading branch information...
1 parent 8db0afe commit 0e5fb0ba9cccf511745e14f3eb6e9f408a1a827c @rafaelfranca rafaelfranca committed Mar 10, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 0e5fb0b

Please sign in to comment.