Skip to content

Commit

Permalink
fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
scambra committed Oct 10, 2024
1 parent c211c70 commit d70e295
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/active_scaffold/helpers/human_condition_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,8 @@ def active_scaffold_human_condition_null(column, value)
def active_scaffold_human_condition_select(column, associated)
attribute = column.active_record_class.human_attribute_name(column.name)
if associated.is_a?(Hash)
if associated['opt'] == '='
associated = associated['from']
else
return active_scaffold_human_condition_range(column, associated)
end
return active_scaffold_human_condition_range(column, associated) unless associated['opt'] == '='
associated = associated['from']
end
associated = [associated].compact unless associated.is_a? Array
if column.association
Expand Down

0 comments on commit d70e295

Please sign in to comment.