From b45c9ca9b6571108242c1dfc3d3e160f56baf025 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 7 Aug 2016 23:41:00 +0200 Subject: revises most Lint/EndAlignment offenses Some case expressions remain, need to think about those ones. --- activemodel/lib/active_model/validations/clusivity.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'activemodel') diff --git a/activemodel/lib/active_model/validations/clusivity.rb b/activemodel/lib/active_model/validations/clusivity.rb index a869dba672..18f1056e2b 100644 --- a/activemodel/lib/active_model/validations/clusivity.rb +++ b/activemodel/lib/active_model/validations/clusivity.rb @@ -17,11 +17,11 @@ module ActiveModel def include?(record, value) members = if delimiter.respond_to?(:call) delimiter.call(record) - elsif delimiter.respond_to?(:to_sym) - record.send(delimiter) - else - delimiter - end + elsif delimiter.respond_to?(:to_sym) + record.send(delimiter) + else + delimiter + end members.send(inclusion_method(members), value) end -- cgit v1.2.3