Giter VIP home page Giter VIP logo

Comments (5)

andreibondarev avatar andreibondarev commented on July 18, 2024 1

@rslhdyt Just released a new version that takes in the filters and scoped_resource. Please try it out!

from administrate_exportable.

rslhdyt avatar rslhdyt commented on July 18, 2024 1

@andreibondarev I am very sorry I just read your reply. thank you for the update, I really appreciate it.

from administrate_exportable.

andreibondarev avatar andreibondarev commented on July 18, 2024

@rslhdyt Could you please elaborate on this question? Are you referring to the new administrate v0.12.0 collection filters?

from administrate_exportable.

rslhdyt avatar rslhdyt commented on July 18, 2024

Hi @andreibondarev

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.

andreibondarev avatar andreibondarev commented on July 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.