Class: Reading
- Inherits:
-
Exercise
- Object
- ActiveRecord::Base
- ApplicationRecord
- Exercise
- Reading
- Includes:
- Confirmable
- Defined in:
- app/models/exercise/reading.rb
Constant Summary
Constants inherited from Exercise
Exercise::BASIC_RESOURCE_FIELDS, Exercise::RANDOMIZED_FIELDS
Instance Method Summary collapse
Methods included from Confirmable
Methods inherited from Exercise
#choice?, #choice_index_for, #choice_values, #console?, #content_used_in?, #custom?, default_scope, #description_context, #description_task, #ensure_type!, #files_for, find_transparently!, #friendly, #guide_done_for?, #import_from_resource_h!, #inspection_keywords, #limited?, locate!, #navigable_content_in, #new_solution, #pending_siblings_for, #previous, #reclassify!, #reset!, #results_hidden?, #search_tags, #settings, #sibling_at, #solvable?, #splitted_description, #structural_parent, #submission_for, #to_expanded_resource_h, #to_resource_h, #transparent_id, #transparent_params, #try_submit_solution!, #used_in?
Methods included from SiblingsNavigation
#navigable_name, #next_for, #pending_siblings_for, #restart, #siblings
Methods included from ParentNavigation
#leave, #navigable_name, #navigable_parent, #navigation_end?
Methods included from Submittable
#find_assignment_and_submit!, #submit!
Methods included from Questionable
Methods included from WithAssignments
#assignment_for, #find_assignment_for, #has_messages_for?, #has_progress_for?, #messages_for, #status_for
Methods included from FriendlyName
Methods included from Assistable
Methods included from WithRandomizations
#randomizer, #seed, #seed_with!
Methods included from WithDiscussions
#discuss!, #new_discussion_for, #submission_for, #try_solve_discussions!
Methods inherited from ApplicationRecord
active_between, aggregate_of, all_except, defaults, #delete, #destroy!, enum_prefixed_translations_for, numbered, organic_on, resource_fields, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, teaser_on, #update_and_notify!, update_or_create!, whitelist_attributes, with_pg_retry, with_temporary_token
Methods included from WithPgLock
Instance Method Details
#input_kids? ⇒ Boolean
10 11 12 |
# File 'app/models/exercise/reading.rb', line 10 def input_kids? false end |
#layout ⇒ Object
6 7 8 |
# File 'app/models/exercise/reading.rb', line 6 def layout :input_bottom end |
#layout=(layout) ⇒ Object
14 15 16 |
# File 'app/models/exercise/reading.rb', line 14 def layout=(layout) raise 'can not set a layout different to input_bottom on readings' unless layout.like? :input_bottom end |
#queriable? ⇒ Boolean
18 19 20 |
# File 'app/models/exercise/reading.rb', line 18 def queriable? false end |