module Contributable
  extend ActiveSupport::Concern

  def add_contribution(model)
    UserContribution.create(
      user_id: current_user.id,
      contribution_id: model.id,
      contribution_type: model.class
    )
  end
end

module Contributable
  extend ActiveSupport::Concern

  def add_contribution(model)
    UserContribution.create(
      user_id: current_user.id,
      contributable_id: model.id,
      contributable_type: model.class
    )
  end
end

Fix syntax issue in Contributable
Fix syntax issue in Contributable
