Class: Wedge::Plugins::CurrentUser

Inherits:
Form show all
Includes:
AbilityList::Helpers
Defined in:
lib/wedge/plugins/current_user.rb

Defined Under Namespace

Modules: InstanceMethods

Instance Attribute Summary

Attributes inherited from Component

#wedge_method_called

Instance Method Summary collapse

Methods included from AbilityList::Helpers

#authorize!, #can?, #cannot?

Methods inherited from Form

#_accessor_options, #_accessors, #_aliases, #_attributes, #_atts_keys, #_keys, #_set_atts, #_with_atts, #_without_atts, attr_accessor, attr_reader, #attributes, #attributes?, #display_errors, form_accessor, inherited, #initialize, #method_missing, model_alias, #model_attributes, #model_attributes?, #nested?, #options, original_attr_accessor, original_attr_reader, #render_values, #slice, #validate_msg

Methods included from Form::Delegates

#_delegates

Methods included from Render

#_error_name, #display_errors, #render_values

Methods included from Form::Validations

#_errors, #_model_errors, #error, #errors, #model_errors, #valid, #valid?, #validate

Methods included from Methods

#client?, included, #server?

Methods inherited from Component

config, dom, html, html!, #method_missing, method_missing, plugin, set_dom, store, tmpl, #to_js, #wedge, #wedge_class_store, wedge_config, #wedge_config, #wedge_dom, wedge_dom, #wedge_from_client?, #wedge_from_server?, #wedge_function, wedge_html, #wedge_html, #wedge_javascript, #wedge_method_url, wedge_name, wedge_new, wedge_on, wedge_on_server, #wedge_plugin, #wedge_scope, #wedge_store, #wedge_tmpl, wedge_tmpl, #wedge_trigger

Constructor Details

This class inherits a constructor from Wedge::Plugins::Form

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Wedge::Plugins::Form

Instance Method Details

#abilitiesObject



47
48
49
# File 'lib/wedge/plugins/current_user.rb', line 47

def abilities
  @abilities ||= Wedge[:ability_list, self]
end