Sorry, I thought you got that warning with rails 6.0, but I saw that 
deprecation doing some 
testing with rails 5.2, so I guess ActiveScaffold won't work with rails 6.0 yet.

El viernes, 15 de mayo de 2020 14:36:16 (CEST) 'Sergio Cambra' via 
ActiveScaffold : Ruby on 
Rails Gem escribió:


It should be safe as it's a deprecation warning. It should still work with 
rails 6.0, but I will 
have to find out how to do in a way accepted by rails 6.0, to get rid of these 
deprecation 
warnings, and have it working for 6.1
 
Probably params to order should be wrapped with Arel.sql always. There must be 
another 
way, but ActiveScaffold allows to change SQL for sorting changing 
column.sort_by, so 
using Arel.sql could be needed in those cases.
 
El viernes, 15 de mayo de 2020 0:50:18 (CEST) Gloufy escribió:
 
Hi Sergio,
 
I've got this message : 
 
 
DEPRECATION WARNING: Dangerous query method (method whose arguments are used 
as raw SQL) called with non-attribute argument(s): "`pers_sports`.`id` ASC". 
Non-attribute 
arguments will be disallowed in Rails 6.0. This method should not be called 
with user-
provided values, such as request parameters or model attributes. Known-safe 
values can 
be passed by wrapping them in Arel.sql(). (called from block in append_to_query 
at /
vendor/bundle/ruby/2.6.0/bundler/gems/active_scaffold-d6756e1f3eb5/lib/
active_scaffold/finder.rb:539)
 
 
And I'm testing to migrate to rails 6, and I think it will not work... :)
 
Thank for your help (again)
 
Gloufy 
-- 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][1].To view this discussion on the 
web visit 
https://groups.google.com/d/msgid/activescaffold/e2a2fc1f-99d2-42ec-8722-ec276c0c5cca%40googlegroups.com[2].
 
  
-- 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][1].To view this discussion on the 
web visit 
https://groups.google.com/d/msgid/activescaffold/529868668.moDir8k8uf%40pc-sergio[3].





--------
[1] mailto:[email protected]
[2] 
https://groups.google.com/d/msgid/activescaffold/e2a2fc1f-99d2-42ec-8722-ec276c0c5cca%40googlegroups.com?utm_medium=email&utm_source=footer
[3] 
https://groups.google.com/d/msgid/activescaffold/529868668.moDir8k8uf%40pc-sergio?utm_medium=email&utm_source=footer

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/activescaffold/2520130.SuH9BfrpcY%40pc-sergio.
  • Rails 6 Gloufy
    • Re: Rails 6 'Sergio Cambra' via ActiveScaffold : Ruby on Rails Gem
      • Re: Rails ... 'Sergio Cambra' via ActiveScaffold : Ruby on Rails Gem
        • Re: Ra... 'Sergio Cambra' via ActiveScaffold : Ruby on Rails Gem

Reply via email to