app/helpers/masquerade_helpers.rb
# override
# This overrides the Devise method in order to allow masquerading
# as another user.
override
This overrides the Devise method in order to allow masquerading
as another user.
override This overrides the Devise method in order to allow masquerading as another user .
def current_educator(options = {})
    if options.has_key?(:super) && options[:super]
      super()
    elsif masquerade.authorized? && masquerade.is_masquerading?
      masquerade.current_educator
    else
      super()
    end
  end
def current_educator ( options = { } ) if options . has_key? ( :super ) && options [ :super ] super ( ) elsif masquerade . authorized? && masquerade . is_masquerading? masquerade . current_educator else super ( ) end end
override
This overrides the Devise method in order to allow masquerading
as another user.
override This overrides the Devise method in order to allow masquerading as another user .
# `super: true` allows callers to get the real underlying Devise user even # when there is masquerading.  This should only be used in limited # places (eg, the code involved in setting and clearing the masquerade).
options
<not_specific>