Class: FiltrosPersonalizados::FieldsPadroes::Select2

Inherits:
Field
  • Object
show all
Defined in:
lib/filtros_personalizados/fields_padroes/select2.rb

Constant Summary collapse

NAO_CONTEM =
"Não Contém"
CONTEM =
"Contém"

Constants inherited from Field

Field::DIFERENTE, Field::ENTRE, Field::IGUAL, Field::MAIOR_QUE, Field::MENOR_QUE, Field::NENHUM, Field::TODOS

Instance Attribute Summary

Attributes inherited from Field

#association, #autocomplete_path, #collection, #collection_id, #collection_name, #field_name, #field_type, #is_open, #noactions, #options, #partial_name, #relation, #tipo_selecionado, #values

Instance Method Summary collapse

Methods inherited from Field

#caption, #initialize

Constructor Details

This class inherits a constructor from FiltrosPersonalizados::FieldsPadroes::Field

Instance Method Details

#acoes_disponiveisObject



5
6
7
# File 'lib/filtros_personalizados/fields_padroes/select2.rb', line 5

def acoes_disponiveis
  [IGUAL, DIFERENTE, TODOS, NENHUM] - self.noactions
end

#fileObject



9
10
11
# File 'lib/filtros_personalizados/fields_padroes/select2.rb', line 9

def file
  "personalizaveis/select2.html.erb"
end

#whereObject



13
14
15
# File 'lib/filtros_personalizados/fields_padroes/select2.rb', line 13

def where
  raise "Precisa ser implementado"
end