diff --git a/lib/arel/nodes/limit_by.rb b/lib/arel/nodes/limit_by.rb index c3a7856d..6901f2da 100644 --- a/lib/arel/nodes/limit_by.rb +++ b/lib/arel/nodes/limit_by.rb @@ -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