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

only include the instance methods and callbacks. #174

Merged
merged 1 commit into from
Oct 29, 2011
Merged

only include the instance methods and callbacks. #174

merged 1 commit into from
Oct 29, 2011

Conversation

cmavromoustakos
Copy link
Contributor

only include the instance methods and callbacks.

Because of the version of mongoid we are on the :scope argument on validates_uniqueness_of :att are not respected from sub classes.

This causes an issue since there is no module InstanceMethods to include the InstanceMethods and Callbacxks but not the validations.

This change allows us to do:

extend Clearance::User::ClassMethods
include Clearance::User::InstanceMethods
include Clearance::User::Callbacks
include Clearance::PasswordStrategies::SHA1

only include the instance methods and callbacks.
croaky pushed a commit that referenced this pull request Oct 29, 2011
only include the instance methods and callbacks.
@croaky croaky merged commit cc0d007 into thoughtbot:master Oct 29, 2011
@croaky
Copy link
Contributor

croaky commented Oct 29, 2011

Word. Merged. Thanks, Gus.

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.

2 participants