class Ransack::Nodes::Sort
def build(params)
def build(params) params.with_indifferent_access.each do |key, value| if key.match(/^(name|dir|ransacker_args)$/) self.send("#{key}=", value) end end self end
def build(params) params.with_indifferent_access.each do |key, value| if key.match(/^(name|dir|ransacker_args)$/) self.send("#{key}=", value) end end self end