Module: CanTango::Macros

Defined in:
lib/cantango/masquerade/macros.rb,
lib/cantango/masquerade_ext/macros.rb,
lib/cantango/masquerade_ext/macros/user.rb,
lib/cantango/masquerade/macros/masquerader.rb,
lib/cantango/masquerade_ext/macros/account.rb

Defined Under Namespace

Modules: Account, Masquerader, User

Class Method Summary collapse

Class Method Details

.extract(*symbols) ⇒ Object



7
8
9
10
11
12
# File 'lib/cantango/masquerade_ext/macros.rb', line 7

def self.extract *symbols
  symbols.inject({}) do |res, v| 
    res[v] = true
    res
  end
end