Class: CloseReason

Inherits:
ApplicationRecord show all
Includes:
MaybeCommunityRelated
Defined in:
/var/apps/qpixel/app/models/close_reason.rb

Instance Method Summary collapse

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

Instance Method Details

#global?Boolean

Is the close reason network-wide (global)?

Returns:

  • (Boolean)

    check result



12
13
14
# File '/var/apps/qpixel/app/models/close_reason.rb', line 12

def global?
  community.nil?
end