Eugene. S.

Results 8 comments of Eugene. S.
trafficstars

I did it like this. ```ruby module AttributesFilter extend ActiveSupport::Concern included do def form_attributes apply_attributes_filters(super, :form) end def show_page_attributes apply_attributes_filters(super, :show) end def collection_attributes apply_attributes_filters(super, :collection) end private def apply_attributes_filters(attributes,...

https://github.com/bastiaanterhorst/rich/blob/master/lib/rich.rb#L11 image_styles has default version always. Did you mean it?

I don't use fog yet(with rich). Error from amazon or rich code? Show me messages! =) And now I think, use rich in production is not good idea, because no...

And yet I think, making preview image(rich_thumb) with PaperClip or Carrierwave is not good. We need add to model RichFile column preview, which will not be depend of image_styles and...

@wengzilla I have the same issue, you can monkey patch [BelongsTo](https://github.com/thoughtbot/administrate/blob/main/lib/administrate/field/belongs_to.rb#L43) like this: ```ruby def candidate_resources scope = if options[:scope] options[:scope].arity.positive? ? options[:scope].call(self) : options[:scope].call else associated_class.all end order =...

take a look at [this](https://github.com/thoughtbot/administrate/blob/main/spec/lib/fields/has_many_spec.rb#L158) another solution is to define a scope in your model with limit: [check tihs](https://github.com/thoughtbot/administrate/blob/6f5e00ba29aa87e41bec7e018e78f1c2cf67217c/docs/guides/scoping_has_many_relations.md?plain=1#L26)

> I saw that, but I'm not sure if it solves my problem. > > In our app, it really is possible to pick from any of the options—it's just...

@goosys `For all field types` - I guess it won't work properly for associative types. It will try to includes association by `key` to avoid N+1 and it will fail.