lemon-wall-20836
01/26/2021, 3:07 PMacoustic-dusk-34165
01/26/2021, 3:07 PMlemon-wall-20836
01/26/2021, 3:08 PMacoustic-dusk-34165
01/26/2021, 3:08 PMlemon-wall-20836
01/26/2021, 3:09 PM2.
we don't really do anything special with queries. we mostly use the AR modelslemon-wall-20836
01/26/2021, 3:09 PMlemon-wall-20836
01/26/2021, 3:10 PMlemon-wall-20836
01/26/2021, 3:10 PMdelayed_job
gem and created a resource for that model Delayed::Job
lemon-wall-20836
01/26/2021, 3:11 PM@model = Delayed::Job
option you can set in the initializerlemon-wall-20836
01/26/2021, 3:11 PMacoustic-dusk-34165
01/26/2021, 3:11 PMlemon-wall-20836
01/26/2021, 3:11 PMlemon-wall-20836
01/26/2021, 3:12 PMacoustic-dusk-34165
01/26/2021, 3:13 PMacoustic-dusk-34165
01/26/2021, 3:22 PMconfig.api_only
is set to false
.
That fixes the authenticity issue. Duh. ๐lemon-wall-20836
01/26/2021, 3:24 PMlemon-wall-20836
01/26/2021, 3:25 PMdry-lion-23745
04/02/2021, 10:54 AMlemon-wall-20836
04/02/2021, 11:00 AMblue-hospital-77159
04/10/2021, 4:48 PMRunning via Spring preloader in process 51711
Could not find "filters/select_filter.rb" in any of your source paths. Your current source paths are:
/Users/ricardo/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/avo-1.2.6/lib/generators/avo/templates
lemon-wall-20836
04/10/2021, 4:49 PMlemon-wall-20836
04/10/2021, 4:49 PMblue-hospital-77159
04/10/2021, 4:50 PMlemon-wall-20836
04/10/2021, 4:52 PMlemon-wall-20836
04/10/2021, 4:52 PMruby
class FilterName < Avo::Filters::SelectFilter
self.name = 'Filter name'
def apply(request, query, value)
query
end
def options
{}
end
end
lemon-wall-20836
04/10/2021, 4:52 PMblue-hospital-77159
04/10/2021, 4:52 PMlemon-wall-20836
04/10/2021, 4:52 PMruby
class FilterName < Avo::Filters::BooleanFilter
self.name = 'Filter name'
def apply(request, query, value)
query
end
def options
{}
end
end
lemon-wall-20836
04/10/2021, 4:52 PMlemon-wall-20836
04/10/2021, 4:53 PMapp/avo/filters/FILTER_NAME.rb