Loading

Paste #p2jfih7ok

  1. class Queries::WorkPackages::Filter::BlockedByPredecessorsFilter <
  2.     Queries::WorkPackages::Filter::WorkPackageFilter
  3.  
  4.   def allowed_values
  5.     [
  6.       [I18n.t(:general_text_yes), CustomValue::BoolStrategy::DB_VALUE_TRUE],
  7.       [I18n.t(:general_text_no), CustomValue::BoolStrategy::DB_VALUE_FALSE]
  8.     ]
  9.   end
  10.  
  11.   def type
  12.     :boolean
  13.   end
  14.  
  15.   def order
  16.     2
  17.   end
  18.  
  19.   def available?
  20.     true
  21.   end
  22.  
  23.   def ar_object_filter?
  24.     false
  25.   end
  26.  
  27.   def self.key
  28.     :blocked_by_predecessors
  29.   end
  30.  
  31.   def type_strategy
  32.     @type_strategy ||= ::Queries::Filters::Strategies::BooleanList.new(self)
  33.   end
  34. end

Comments