Class: Answer

Inherits:
Post show all
Defined in:
app/models/answer.rb

Class Method Summary collapse

Methods inherited from Post

#answer?, #article?, #body_plain, by_slug, #can_access?, #last_activity_type, #locked?, #meta?, #pending_suggested_edit, #pending_suggested_edit?, #question?, #reaction_list, #reassign_user, #recalc_score, #remove_attribution_notice!, search, #spam_flag_pending?, #tag_set

Methods included from PostValidations

#maximum_tag_length, #maximum_tags, #maximum_title_length, #no_spaces_in_tags, #required_tags?, #stripped_minimum_body, #stripped_minimum_title, #tags_in_tag_set

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

.post_type_idObject



4
5
6
# File 'app/models/answer.rb', line 4

def self.post_type_id
  PostType.mapping['Answer']
end