Rails 7 deprecated the use of direct_descendants in favor of subclasses it was then completely removed in Rails 7.1 which broke the ability of this gem to export model attributes for translation. This pull request fixes the issue by using the subclasses method on Rails version starting with 7.0. On versions below 7.0 we fall back to direct_descendants to maintain backward compatibility.
Rails 7 deprecated the use of direct_descendants in favor of subclasses it was then completely removed in Rails 7.1 which broke the ability of this gem to export model attributes for translation. This pull request fixes the issue by using the subclasses method on Rails version starting with 7.0. On versions below 7.0 we fall back to direct_descendants to maintain backward compatibility.
Closes #202