Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant ActiveRecord::Acts::Versioned::ClassMethods::Inflector #5

Open
andhapp opened this issue Oct 6, 2009 · 5 comments

Comments

@andhapp
Copy link

andhapp commented Oct 6, 2009

On running the following migrations:

class AddVersionToPost < ActiveRecord::Migration
  def self.up
    Post.create_versioned_table
  end

  def self.down
    Post.drop_versioned_table
  end
end

and where Post is:

class Post
  acts_as_versioned
end

@andhapp
Copy link
Author

andhapp commented Oct 6, 2009

That only happens in the installed gem as I forked the project and it looks arrite.

@andhapp
Copy link
Author

andhapp commented Oct 6, 2009

Do not use the gem. Just clone the repo and it works like a charm.

@rcrowley
Copy link

I see this problem with Rails 3 and see that if you manually specify :table_name then everything's fine:

class Post
  acts_as_versioned :table_name => :post_versions
end

@tobypinder
Copy link

Confirming that @rcrowley's workaround is still valid, 3 years later, for any googlers.

@luilver
Copy link

luilver commented Aug 31, 2022

Confirming that @rcrowley's workaround still works, 12 years later, for any googlers.

luilver added a commit to luilver/railscollab that referenced this issue Aug 31, 2022
yakjuly pushed a commit to getaroom/acts_as_versioned that referenced this issue Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants