aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorShuhei Kitagawa <shuhei.kitagawa@c-fo.com>2017-10-28 17:20:38 +0900
committerShuhei Kitagawa <shuhei.kitagawa@c-fo.com>2017-10-28 17:20:38 +0900
commitc40b4428e6d3885a8adc0ceba3aeac7599c14879 (patch)
tree3e947346605a4032d95fc28b6b38da7c624c2e81 /activerecord
parentbf6456e05395583809f4565844a8dc088431fce7 (diff)
downloadrails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.tar.gz
rails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.tar.bz2
rails-c40b4428e6d3885a8adc0ceba3aeac7599c14879.zip
removed unnecessary returns
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods.rb2
-rw-r--r--activerecord/lib/active_record/counter_cache.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_methods.rb b/activerecord/lib/active_record/attribute_methods.rb
index 891e556dc4..23d2aef214 100644
--- a/activerecord/lib/active_record/attribute_methods.rb
+++ b/activerecord/lib/active_record/attribute_methods.rb
@@ -236,7 +236,7 @@ module ActiveRecord
return has_attribute?(name)
end
- return true
+ true
end
# Returns +true+ if the given attribute is in the attributes hash, otherwise +false+.
diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb
index 5005d58f1c..ee4f818cbf 100644
--- a/activerecord/lib/active_record/counter_cache.rb
+++ b/activerecord/lib/active_record/counter_cache.rb
@@ -53,7 +53,7 @@ module ActiveRecord
unscoped.where(primary_key => object.id).update_all(updates)
end
- return true
+ true
end
# A generic "counter updater" implementation, intended primarily to be