You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using rails 7.1 with composite + freindly_id will give the following error
extendFriendlyIdfriendly_id:name,use: :slugged
`scope_for_slug_generator': ["column_one", "column_two"] is not a symbol nor a string (TypeError)
scope.where(self.class.base_class.arel_table[primary_key_name].not_eq(send(primary_key_name)))
normally the
primary_key_name=self.class.primary_key
would return a string but with composite keys it will return an array.
so above example is
self.class.primary_key["column_one","column_two"]
The text was updated successfully, but these errors were encountered:
using rails 7.1 with composite + freindly_id will give the following error
normally the
would return a string but with composite keys it will return an array.
so above example is
The text was updated successfully, but these errors were encountered: