Skip to content

Commit

Permalink
Add comma to last item in multiline hashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Rice authored and Adam Rice committed Jul 27, 2016
1 parent 44e0a89 commit c865d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rails_admin/adapters/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ def generic_unary_operators
'_null' => ["(#{@column} IS NULL)"],
'_not_null' => ["(#{@column} IS NOT NULL)"],
'_empty' => ["(#{@column} = '')"],
'_not_empty' => ["(#{@column} != '')"]
'_not_empty' => ["(#{@column} != '')"],
}
end

def boolean_unary_operators
generic_unary_operators.merge(
'_blank' => ["(#{@column} IS NULL)"],
'_present' => ["(#{@column} IS NOT NULL)"]
'_present' => ["(#{@column} IS NOT NULL)"],
)
end

Expand Down

0 comments on commit c865d22

Please sign in to comment.