Skip to content

Commit

Permalink
better user class registration
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmandrup committed Nov 3, 2011
1 parent 51a6d93 commit 4360bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cantango/users/macros.rb
Expand Up @@ -9,7 +9,7 @@ def tango_user_account options = {}
self.send :include, CanTango::Users::UserAccount
self.send :include, CanTango::Users::Masquerade if options[:masquerade]
end
alias_method :tango_account, :tango_user_account
alias_method :tango_account, :tango_user_account
alias_method :cantango_account, :tango_user_account

def masquerader
Expand Down
2 changes: 1 addition & 1 deletion lib/cantango/users/user.rb
Expand Up @@ -23,7 +23,7 @@ def active_account
end

def self.included(base)
CanTango.config.users.register base.name.underscore, base
CanTango.config.users.register base.name.underscore.gsub(/_user$/, ''), base
end
end
end
Expand Down

0 comments on commit 4360bd6

Please sign in to comment.