Class: WatcherQueryColumn

Inherits:
QueryColumn show all
Defined in:
app/models/query.rb

Instance Attribute Summary

Attributes inherited from QueryColumn

#default_order, #groupable, #name, #sortable, #totalable

Instance Method Summary collapse

Methods inherited from QueryColumn

#caption, #css_classes, #frozen?, #group_by_statement, #group_value, #groupable?, #initialize, #inline?, #sortable?, #value

Methods included from Redmine::I18n

#abbr_day_name, #current_language, #day_letter, #day_name, #find_language, #format_date, #format_hours, #format_time, included, #l, #l_hours, #l_hours_short, #l_or_humanize, #languages_options, #ll, #lu, #month_name, #normalize_float, #set_language_if_valid, #valid_languages

Constructor Details

This class inherits a constructor from QueryColumn

Instance Method Details

#value_object(object) ⇒ Object



108
109
110
111
112
# File 'app/models/query.rb', line 108

def value_object(object)
  return nil unless User.current.allowed_to?(:"view_#{object.class.name.underscore}_watchers", object.try(:project))

  super
end