Sha256: 01f5b630f58b0b649b927febf26123329a8b5d2b9f2d05cf530868e07e95da3f

Contents?: true

Size: 575 Bytes

Versions: 3

Compression:

Stored size: 575 Bytes

Contents

class Module
  def tango_user options = {}
    self.send :include, CanTango::Users::User
    self.send :include, CanTango::Users::Masquerade if options[:masquerade]
  end
  alias_method :cantango_user, :tango_user

  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 :cantango_account, :tango_user_account

  def masquerader
    self.send :include, CanTango::Users::Masquerade
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cantango-0.9.4.1 lib/cantango/users/macros.rb
cantango-0.9.4 lib/cantango/users/macros.rb
cantango-0.9.3.2 lib/cantango/users/macros.rb