Skip to content

Conversation

@julienemo
Copy link

This is not my original idea !!!!
MadBomber had this idea and personnally it helped me. I thought I might just as well make a PR

Original issue here
#403

@panteo
Copy link

panteo commented Mar 29, 2024

Can someone merge this PR please?

@panteo
Copy link

panteo commented Mar 29, 2024

It can also be implemented like this:

      def foreign_key?
        @domain.relationships_by_entity_name(@model.name).map(&:associations).flatten.map { |associaton|
          [associaton.send(Domain.foreign_key_method_name)].flatten.map(&:to_sym).join("_")
        }.include?(name.to_sym)
      end

@panteo
Copy link

panteo commented Nov 25, 2024

Any news?

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

Successfully merging this pull request may close these issues.

2 participants