Files

UbiquoAuthentication::Extensions::Helper

Public Instance Methods

superadmin_home_tab(tabnav) click to toggle source

Adds a superadmin home tab to the tabnav. It doesn’t validates that the user is a superadmin, it’s supposed.

    # File vendor/plugins/ubiquo_authentication/lib/ubiquo_authentication/extensions/helper.rb, line 37
37:       def superadmin_home_tab(tabnav)
38:         tabnav.add_tab do |tab|
39:           tab.text =  I18n.t("ubiquo.auth.superadmin_home")
40:           tab.title =  I18n.t("ubiquo.auth.superadmin_home_title")
41:           tab.highlights_on({:controller => "ubiquo/superadmin_homes"})
42:           tab.link = ubiquo_superadmin_home_path  
43:         end
44:       end
superadmin_mode?() click to toggle source

returns if the superadmin mode is actived or not.

    # File vendor/plugins/ubiquo_authentication/lib/ubiquo_authentication/extensions/helper.rb, line 64
64:       def superadmin_mode?
65:         session[:superadmin_mode]==true
66:       end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.