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

Introduce non_auditable_columns lazy method. #99

Closed

Conversation

hron
Copy link

@hron hron commented May 8, 2012

This is adopted version of pull request #78. I do not understand why it was not applied before...

Let me clarify what use case it resolves. When an user of audited creates a model and pass :only option, e.g.

class User < ActiveRecord::Base
  audited :only => [:administrator]
end

then rake db:migrate will constantly fail because Audited will call column_names on a model without table.

I am sure this is a typical use case and every user of audited will be frustrated when it will encounter such an error. ;)

@raws
Copy link

raws commented Jan 14, 2013

For what it's worth, +1 on this. I unknowingly implemented your patch almost exactly a few days ago, and was about to submit a pull request when I saw yours!

@piya23300
Copy link

+1
PR #78 #99 work!

@RohitRox
Copy link

Why this fix isn't applied yet? Can we please have this merged?

@ankane
Copy link
Contributor

ankane commented Aug 4, 2015

Was just about to open a pull request with this exact feature. https://github.com/ankane/audited/commit/6491337edceb3e481a26fcd33df2f664abc38d95

👍

@tbugai
Copy link

tbugai commented Sep 15, 2016

This has been implemented in newer versions of the gem.

@tbugai tbugai closed this Sep 15, 2016
rocket-turtle pushed a commit to rocket-turtle/audited that referenced this pull request Jan 4, 2023
…und_exists

add documentation about #exists
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

Successfully merging this pull request may close these issues.

6 participants