Yes, it needs to be changed to work with rails 5, similar changes was needed 
for field_search in ActiveScaffold. I have fixed in master branch.

El jueves, 19 de enero de 2017 7:30:22 (CET) [email protected] 
escribió:
> It seems that https://github.com/activescaffold/active_scaffold_batch has
> not been updated to handle the strong parameters that Rails 5 requires. I
> can batch destroy but I cannot batch update since:
> 
> next unless attributes[column.name].is_a?(Hash) && params[:record][column.
> name][:operator] != 'NO_UPDATE'
> 
> in
> 
>     def update_attribute_values_from_params(columns, attributes)
>       values = {}
>       attributes = {} unless attributes.is_a?(Hash)
>       columns.each :for => new_model, :crud_type => :update, :flatten =>
> true do |column|
>         next unless attributes[column.name].is_a?(Hash) && params[:record][
> column.name][:operator] != 'NO_UPDATE'
>         value = attributes[column.name]
>         value = value.merge(:value => (value[:operator] == 'NULL') ? nil :
> column_value_from_param_value(nil, column, value[:value]))
>         values[column.name] = {:column => column, :value => value}
>       end
>       values
>     end
> 
> in file /lib/active_scaffold/actions/batch_update.rb will never be true
> since attributes[column.name].is_a?(Hash) is always false.
> 
> Am I correct or am I doing something else wrong?


-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to