Class: Question
- Inherits:
-
Post
- Object
- ActiveRecord::Base
- ApplicationRecord
- Post
- Question
- Defined in:
- /var/apps/qpixel/app/models/question.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Post
accessible_to, #answer?, #article?, #body_plain, by_slug, #can_access?, #closeable?, #comments_allowed?, #deleted_by_owner?, #followed_by?, #imported?, #last_activity_type, #pending_spam_flag?, #pending_suggested_edit, #pending_suggested_edit?, #question?, #reaction_list, #reassign_user, #recalc_score, #related_posts_for, #related_posts_for?, #remove_attribution_notice!, search, #tag_set, #top_level?
Methods included from PostValidations
#check_required_tags, #maximum_tag_length, #maximum_tags, #maximum_title_length, #no_spaces_in_tags, #stripped_minimum_body, #stripped_minimum_title, #tags_in_tag_set
Methods included from Lockable
Methods inherited from ApplicationRecord
#attributes_print, fuzzy_search, match_search, #match_search, sanitize_for_search, sanitize_name, sanitize_sql_in, useful_err_msg, with_lax_group_rules
Class Method Details
Instance Method Details
#answers ⇒ Object
11 12 13 |
# File '/var/apps/qpixel/app/models/question.rb', line 11 def answers Answer.where(parent: self) end |