Closed
Description
The recent change to define an API on Model added a save
definition. This, however, seems to conflict with the existing ActiveRecord implementation provided by Rails (where save accepts options
) and the shim in this library, which do not allow for arguments.
This incompatibility results in errors when attempting to create records in Rails:
ArgumentError:
wrong number of arguments (given 1, expected 0)
# /ruby/2.7.1/lib/ruby/gems/2.7.0/gems/omniauth-identity-3.0.6/lib/omniauth/identity/model.rb:85:in `save'
The new save
definition introduced here a few days ago:
omniauth-identity/lib/omniauth/identity/model.rb
Lines 85 to 89 in 9f55885
The existing ActiveRecord
interface which does not override save
and just inherits it:
Metadata
Metadata
Assignees
Labels
No labels