diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-15 12:43:19 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-15 12:43:19 -0300 |
commit | 65122025fbfe6b75efc7220c1687bf2d8a7b8879 (patch) | |
tree | 80f1f81169e33d22b14938c77780514c543abcc3 /activerecord | |
parent | 11338183265f759b07c8dffd526b92fb550ba79d (diff) | |
download | rails-65122025fbfe6b75efc7220c1687bf2d8a7b8879.tar.gz rails-65122025fbfe6b75efc7220c1687bf2d8a7b8879.tar.bz2 rails-65122025fbfe6b75efc7220c1687bf2d8a7b8879.zip |
Predicate methods don't need to return `true` / `false`
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb index db8c16914e..e5417a9556 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb @@ -779,7 +779,7 @@ module ActiveRecord end def mariadb? - !!(full_version =~ /mariadb/i) + full_version =~ /mariadb/i end def supports_views? |