Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove return guard

  • Loading branch information...
commit b6a68737fb7f16fabff3a231e97adf42727e239a 1 parent ee94128
@carlosantoniodasilva carlosantoniodasilva authored
View
3  activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
@@ -64,8 +64,7 @@ def create_time_zone_conversion_attribute?(name, column)
private
def round_usec(value)
- return unless value
- value.change(:usec => 0)
+ value.change(usec: 0) if value
end
end
end
View
1  activerecord/test/cases/dirty_test.rb
@@ -121,7 +121,6 @@ def test_time_attributes_changes_without_time_zone_by_skip
end
def test_time_attributes_changes_without_time_zone
-
target = Class.new(ActiveRecord::Base)
target.table_name = 'pirates'
Please sign in to comment.
Something went wrong with that request. Please try again.