We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea93dc5 + 19b3c19 commit a4d318fCopy full SHA for a4d318f
1 file changed
lib/declarative_authorization/obligation_scope.rb
@@ -256,7 +256,7 @@ def rebuild_condition_options!
256
else
257
attribute_name = model.columns_hash["#{attribute}_id"] && :"#{attribute}_id" ||
258
model.columns_hash[attribute.to_s] && attribute ||
259
- :id
+ model.primary_key
260
attribute_table_alias = table_alias
261
used_paths << path
262
end
0 commit comments