Created
March 13, 2017 01:44
-
-
Save d0minicw0ng/e6bc6e8784c25a346697954f63f25de9 to your computer and use it in GitHub Desktop.
ActiveAdmin default_filters method for blog post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def default_filters | |
result = [] | |
result.concat default_association_filters if namespace.include_default_association_filters | |
result.concat content_columns | |
result.concat custom_ransack_filters | |
result | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment