Comments (5)
@rslhdyt Just released a new version that takes in the filters and scoped_resource. Please try it out!
from administrate_exportable.
@andreibondarev I am very sorry I just read your reply. thank you for the update, I really appreciate it.
from administrate_exportable.
@rslhdyt Could you please elaborate on this question? Are you referring to the new administrate v0.12.0
collection filters?
from administrate_exportable.
No, in my case. I just want to filter the export result when using scoped_resource.
this is the sample code.
module Admin
class UsersController < Admin::ApplicationController
include AdministrateExportable::Exporter
def scoped_resource
resource_class.where(is_active: true)
end
end
end
in my index page, the only active user will show but when I click the export button all users exported to csv.
from administrate_exportable.
@rslhdyt Got it, that's valid. Would you like to take a stab at a pull request for this?
from administrate_exportable.
Related Issues (11)
- Undefined method `collection_includes' HOT 10
- Field::Text truncated to 50 characters on export HOT 1
- Does not work with HasOne associations
- Interference with Turbolinks HOT 1
- Error on export with Administrate 0.12.0 HOT 5
- Export service does not handle date fields
- Broken pagination with administrate-0.15.0 HOT 4
- Generating several N+1 queries when adding multiple resources to an export thus slowing down query and timing out Heroku HOT 5
- Error: Please use symbols for polymorphic route arguments. HOT 2
- Fix security vulnerabilities HOT 2
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 administrate_exportable.