kreeti / kt-paperclip

Easy file attachment management for ActiveRecord
Other
276 stars 94 forks source link

Mutate I18n.load_path only the first time Paperclip::Glue is included #117

Closed jasonpenny closed 1 year ago

jasonpenny commented 1 year ago

Each time Paperclip::Glue is included, I18n.load_paths += ... is being executed.

This is happening because locale_path is an array of file paths which will not exist as a single item in I18n.load_path, so I18n.load_path.include?(locale_path) always returns false

jasonpenny commented 1 year ago

@ssinghi can I get a review on this?

jasonpenny commented 1 year ago

@amanksingh01-kreeti can I get a review on this?

jasonpenny commented 1 year ago

@ssinghi thanks for merging this, can someone publish a new version of kt-paperclip to rubygems with recent changes?