public_activity icon indicating copy to clipboard operation
public_activity copied to clipboard

Error in Rails 6

Open wernerlaude opened this issue 5 years ago • 19 comments

I have: class ApplicationController < ActionController::Base protect_from_forgery with: :exception include PublicActivity::StoreController

class Documentation < ApplicationRecord include PublicActivity::Model tracked owner: Proc.new{ |controller, model| controller.current_user }

and i get: unknown attribute 'owner' for PublicActivity::Activity. Not working in Rails6? Thanks for help.

wernerlaude avatar May 31 '19 14:05 wernerlaude

@wernerlaude using master branch seems to have fixed this issue for me,

gem 'public_activity', github: 'chaps-io/public_activity', branch: 'master'

rajraj avatar Jun 05 '19 13:06 rajraj

Thanks..

wernerlaude avatar Jun 05 '19 14:06 wernerlaude

Could be closed after the release :)

dmitry avatar Jul 02 '19 15:07 dmitry

master is not releasable, so not sure how that fixed the issue for Rails 6, It's a 2 years old branch :grin:

Can you try 1-6-stable branch?

pokonski avatar Jul 16 '19 08:07 pokonski

Confirmed, it works with Rails 6.0.0.rc1 and the 1-6-stable branch.

tbuehlmann avatar Jul 22 '19 07:07 tbuehlmann

Since Rails 6 is coming up, could you make a release of the 1-6 branch so that everybody are able to test if the rest of their application are releasable with Rails 6.

jesperronn avatar Aug 10 '19 07:08 jesperronn

Any news on a release that's compatible with Rails 6?

hllewelyn avatar Sep 26 '19 08:09 hllewelyn

Hey guys, I released 1.6.4, can you please try if it helped? /cc @hllewelyn @jesperronn @tbuehlmann @dmitry

pokonski avatar Sep 30 '19 10:09 pokonski

Just tried it out, switching from the 1-6-stable branch to 1.6.4 seems to work for me.

pduersteler avatar Sep 30 '19 10:09 pduersteler

As of 1.6.4 version, I have Rails 6 and Mongoid with mongoid orm configration, but I got ActiveRecord::ConnectionNotEstablished...No connection pool with 'primary' found, the Database setup seems did not take effect. @pokonski

Feuda avatar Nov 25 '19 08:11 Feuda

I have a same issue with Feuda when using with MongoId ActiveRecord::ConnectionNotEstablished...No connection pool with 'primary' found

ntloi95 avatar Apr 22 '20 09:04 ntloi95

same issue here, pretty blocking. Has anyone a workaround for that ?

dfabreguette avatar Feb 24 '21 13:02 dfabreguette

@dfabreguette-ap seems like repo is abandoned, you can check some forks here: https://github.com/chaps-io/public_activity/network

dmitry avatar Feb 24 '21 14:02 dmitry

@Feuda @dfabreguette @dmitry Is that still a problem for you? Development stalled for a while but overall this gem is not abandoned; quite the opposite. However, personally, I have no need for Mongo, so not sure the adapters even work at this point. I’ll happily accept a patch. Otherwise, I might remove the Mongo adapters entirely.

ur5us avatar Oct 29 '23 02:10 ur5us