Comments (3)
Would be interested in knowing how other people are solving this. I'm working on upgrading a Rails 6 app to Rails 7 and taking Ransack from 2.x to 4.x, so this will probably be an issue unless we explicitly list each model's columns, which I guess is the most correct solution.
from ransack.
We were also hit by this wen upgrading from activeadmin 2 to version 3. We saw quite a degradation in our system, experiencing very slow load times and had to revert the change.
Basically, to maintain compatibility with the precious question we followed the recommendation of defining a ransackable_attributes method in the base application record, which called authorizable_ransackable_attributes.
from ransack.
Maybe authorizable_ransackable_attributes need to be cached in the adapter, just like ransackable_attributes is.
from ransack.
Related Issues (20)
- `_cont` filter adding extra quotes HOT 1
- Bug report templates use Minitest
- Using Trigram pg extension for more performant text similarity searches HOT 1
- NoMethodError: undefined method `value' for #<Arel::SelectManager
- [Question] The sort_link does not refer to the search criteria in the object passed in the first argument.
- [Suggestion] Check for ransackable_scopes before checking attribute searches.
- Allow sorting using generated/virtual columns [Postgres]
- using cont on Oracle CLOB column is converting value to empty_clob()
- Ransack 4.0 allowlist be an optional config HOT 5
- [BUG][RoR 7.1] ActiveRecord::normalizes can break `cont` predicate
- sqlite3 errors in CI HOT 2
- Ransack doesn't lookup scope when using groupings HOT 2
- Getting with_connection for an instance of ActiveRecord::ConnectionAdapters::PostgreSQLAdapter HOT 5
- Predicate to search by length of string
- NoMethodError error with_connection with Rails 7.2 HOT 3
- Using custom scopes in advanced mode query params
- Support for Trilogy database adapter
- Undefined method `to_sym' when calling search.sorts.empty? Under 4.2.0
- Incorrectly loading Rails 7.2 join file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ransack.