Pablo Brasero

Results 297 comments of Pablo Brasero

I think let's avoid that initially, as it might be adding functionality that doesn't really belong in Administrate. Also, I suspect it will be a bit more complex that it...

That sounds like a good plan! :+1:

No pressure 👍 I'm not great at it either 😝

Here's an alternative way this could be implemented: https://github.com/thoughtbot/administrate/pull/1506 Still working on it, and needs to be discussed with other maintainers.

Hm, on first inspection, I think the problem stems from us not applying i18n in `Field::Polymorphic#associated_resource_grouped_options` (specifically the `klass.to_s` in line 12): https://github.com/thoughtbot/administrate/blob/b3bb0a3b7833deceff71cfe1687ac36cec12a6e8/lib/administrate/field/polymorphic.rb#L10-L16 Perhaps we should be using `#model_name` instead...

Hello @barmic12. At the moment there isn't a feature for this. A way around the problem would be to provide your own view for the dashboard, as described at http://administrate-demo.herokuapp.com/customizing_page_views...

The thing with that patch is that it is for a generator, rather than for code that runs day-to-day. Do they have anything else?

Then I'm not sure that the linked commit fixes the problem. Instead, it appears to add detection of virtual attributes added with `attribute`. Also, this is not the only way...

Thanks to all who helped explain this issue! @wkirby, @Timmitry - For the moment, a workaround might be to add a method of this name (in your example `download`) to...

@wvengen - Thank you for looking into this :-) Initially, I'm more inclined towards the first option. I have seen other use cases where having the field decide its value...