Example:
masquarade_as(:role, 2) masquarade_as(:user, 4) masquarade_as(:world)
# File lib/netzke/core/masquerading.rb, line 8 def masquerade_as(authority_level, authority_id = true) reset_masquerading session.merge!(:"masq_#{authority_level}" => authority_id) end
Generated with the Darkfish Rdoc Generator 2.