Class: LinkedRails::CurrentUser
- Inherits:
-
Object
- Object
- LinkedRails::CurrentUser
- Includes:
- ActiveModel::Model, Model
- Defined in:
- app/models/linked_rails/current_user.rb
Constant Summary
Constants included from Model::Collections
Model::Collections::COLLECTION_CUSTOMIZABLE_OPTIONS, Model::Collections::COLLECTION_OPTIONS, Model::Collections::COLLECTION_STATIC_OPTIONS
Instance Attribute Summary collapse
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Model
Methods included from Model::Singularable
#root_relative_iri, #root_relative_singular_iri, #singular_iri, #singular_iri_opts, #singular_iri_template, #singular_resource?
Methods included from Model::Serialization
#preview_includes, #show_includes
Methods included from Model::Menuable
Methods included from Model::Iri
#anonymous_iri, #anonymous_iri?, #iri, #iri_elements, #iri_opts, #reload, #root_relative_iri, #route_fragment
Methods included from Model::Enhancements
Methods included from Model::Dirty
#previous_changes_by_predicate, #previously_changed_relations
Methods included from Model::Collections
#collection_for, #collection_iri, #collection_options_for, #collection_root_relative_iri, #parent_collections
Methods included from Model::Actionable
#action, #action_list, #action_triples, #actions, #collection_actions, #favorite_actions
Instance Attribute Details
#user ⇒ Object
Returns the value of attribute user.
8 9 10 |
# File 'app/models/linked_rails/current_user.rb', line 8 def user @user end |
Class Method Details
.route_key ⇒ Object
23 24 25 |
# File 'app/models/linked_rails/current_user.rb', line 23 def route_key :c_a end |
Instance Method Details
#actor_type ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/models/linked_rails/current_user.rb', line 10 def actor_type if user.is_a?(LinkedRails.guest_user_class) 'GuestUser' else 'ConfirmedUser' end end |
#rdf_type ⇒ Object
18 19 20 |
# File 'app/models/linked_rails/current_user.rb', line 18 def rdf_type Vocab.ontola[actor_type] end |