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
when adding acts_as_commontable to active storage attachment, commontator raise an error when adding picture to user for instance with
<ArgumentError: wrong number of arguments (given 3, expected 0)>
it happens at in lib/commontator/acts_as_commontable.rb line 27
validates :commontator_thread, presence: true, if: -> { Commontator::Thread.table_exists? }
i needed to add this
unless self.name == "ActiveStorage::Attachment"
validates :commontator_thread, presence: true, if: -> { Commontator::Thread.table_exists? }
end
to make it work
The text was updated successfully, but these errors were encountered:
when adding acts_as_commontable to active storage attachment, commontator raise an error when adding picture to user for instance with
<ArgumentError: wrong number of arguments (given 3, expected 0)>
it happens at in lib/commontator/acts_as_commontable.rb line 27
validates :commontator_thread, presence: true, if: -> { Commontator::Thread.table_exists? }
i needed to add this
unless self.name == "ActiveStorage::Attachment"
validates :commontator_thread, presence: true, if: -> { Commontator::Thread.table_exists? }
end
to make it work
The text was updated successfully, but these errors were encountered: