Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: global list of fields to always hide (unless explicitly overwritten) #96

Open
Qqwy opened this issue Nov 3, 2015 · 1 comment

Comments

@Qqwy
Copy link

Qqwy commented Nov 3, 2015

I would like to pass a list of fields to Hirb.enable that, by default, hides these fields in all tables that Hirb creates. Something like Hirb.enable {width:150, height:200, hide_fields: [:field_name, :another_field_name]}. Of course, this could then be overwritten by explicitly callingHirb.table object_name, fields:[:field_name]`

I think this would be very helpful in a wide number of cases, as many objects have (database) fields that are not interesting when inspecting them most of the time. An example would be the created_at and updated_at timestamps that Rails models have.

@cldwalker
Copy link
Owner

Thanks for reporting your issue! This is one of my 9 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants