Class: Cms::GuestUser
- Inherits:
-
User
- Object
- ActiveRecord::Base
- PersistentUser
- User
- Cms::GuestUser
- Includes:
- UsersService::GuestUserModule
- Defined in:
- app/models/cms/guest_user.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GuestUser
constructor
A new instance of GuestUser.
Methods included from UsersService::GuestUserModule
#able_to_edit?, #cms_access?, #group, #groups, #guest?, #readonly?, #save, #update_attribute, #update_attributes
Methods inherited from User
change_password, #change_password, #new_password, permitted_params, #source
Methods inherited from PersistentUser
able_to_edit_or_publish_content, #active_for_authentication?, #cas_extra_attributes=, current, current=, #disable, #disable!, #enable, #enable!, #expired?, #expires_at_formatted, #full_name, #group_codes, #group_codes=, guest, #guest?, #password_changeable?, permitted_params
Methods included from DefaultAccessible
#non_permitted_params, #permitted_params
Constructor Details
#initialize(attributes = {}) ⇒ GuestUser
Returns a new instance of GuestUser.
12 13 14 15 |
# File 'app/models/cms/guest_user.rb', line 12 def initialize(attributes={}) super({:login => Cms::Group::GUEST_CODE, :first_name => "Anonymous", :last_name => "User"}.merge(attributes)) @guest = true end |