Skip to content

Instantly share code, notes, and snippets.

@44uk
Created April 29, 2023 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 44uk/5607537fec39b6fa7f7d710cd7ebe74e to your computer and use it in GitHub Desktop.
Save 44uk/5607537fec39b6fa7f7d710cd7ebe74e to your computer and use it in GitHub Desktop.
authorizable_ransackable
module AuthorizableRansackable
extend ActiveSupport::Concern
included do
def self.ransackable_associations(_auth_object = nil)
authorizable_ransackable_associations
end
def self.ransackable_attributes(_auth_object = nil)
authorizable_ransackable_attributes
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment