aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/validations
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-03-10 10:08:00 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-03-10 10:08:00 -0300
commit0e5fb0ba9cccf511745e14f3eb6e9f408a1a827c (patch)
tree360276c0397442e087aa549f61880f978a418c76 /activerecord/lib/active_record/validations
parent8db0afe2a82e5ef2cdc58b07a00d4e9e13a308d4 (diff)
downloadrails-0e5fb0ba9cccf511745e14f3eb6e9f408a1a827c.tar.gz
rails-0e5fb0ba9cccf511745e14f3eb6e9f408a1a827c.tar.bz2
rails-0e5fb0ba9cccf511745e14f3eb6e9f408a1a827c.zip
Whitespaces
Diffstat (limited to 'activerecord/lib/active_record/validations')
-rw-r--r--activerecord/lib/active_record/validations/uniqueness.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations/uniqueness.rb b/activerecord/lib/active_record/validations/uniqueness.rb
index 49b0f73219..82c2b9439b 100644
--- a/activerecord/lib/active_record/validations/uniqueness.rb
+++ b/activerecord/lib/active_record/validations/uniqueness.rb
@@ -13,7 +13,7 @@ module ActiveRecord
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 @@ module ActiveRecord
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