Skip to content

Commit

Permalink
remove sanitize of column
Browse files Browse the repository at this point in the history
  • Loading branch information
jdenquin committed Oct 10, 2024
1 parent ce2710d commit 275b415
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/arel/nodes/limit_by.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ def initialize(limit, column)
raise ArgumentError, 'Limit should be an integer' unless limit.is_a?(Integer)
raise ArgumentError, 'Limit should be a positive integer' unless limit >= 0
raise ArgumentError, 'Column should be a Symbol or String' unless column.is_a?(String) || column.is_a?(Symbol)

@column = column

super(limit)
end

private

def sanitize(value)
value
end
end
end
end

0 comments on commit 275b415

Please sign in to comment.