Class: LoginPortlet

Inherits:
Portlet
  • Object
show all
Defined in:
app/portlets/login_portlet.rb

Instance Attribute Summary

Attributes inherited from Portlet

#connect_to_container, #connect_to_page_id, #controller

Instance Method Summary collapse

Methods inherited from Portlet

columns_for_index, default_template, default_template_path, enable_template_editor, form, get_subclass, handler, has_edit_link?, inherited, #inline_options, #instance_name, #portlet_type_name, render_inline, set_default_template_path, #store_errors_in_flash, #store_hash_in_flash, #store_params_in_flash, #type_name, types, #url_for_failure, #url_for_success

Instance Method Details

#renderObject



3
4
5
6
7
8
# File 'app/portlets/login_portlet.rb', line 3

def render
  @success_url = (flash[:success_url] || self.success_url)
  @failure_url = self.failure_url
  @login = flash[:login] || params[:login]
  @remember_me = flash[:remember_me] || params[:remember_me]
end