Searched refs:klass (Results 1 - 13 of 13) sorted by relevance

/ontohub/app/helpers/
H A Dontology_search_helper.rb2 def render_filter(klass, include_blank = '', selected_key: nil)
3 name = klass.name.underscore.to_sym
6 filter: filter_list_for(klass),
11 def filter_list_for(klass)
13 klass.not_empty.where(ontologies: {repository_id: @repository_id})
15 klass.not_empty
H A Dproofs_helper.rb8 def klass method in class:ProofsHelper
9 t("proofs.new.klass.#{resource.proof_obligation.class.to_s.underscore}")
H A Dstate_helper.rb36 klass: resource.class.to_s,
/ontohub/lib/
H A Dmigration_with_data.rb15 def select_attributes_class(klass, search_value, *keys, search_column: :id)
17 klass.where(search_column => search_value).pluck(key).first
24 klass = record.class
25 skip_all_callbacks(klass)
27 set_all_callbacks(klass)
46 def skip_all_callbacks(klass)
48 klass.send("_#{name}_callbacks").each do |_callback|
50 klass.skip_callback(name, _callback.kind, _callback.filter)
56 def set_all_callbacks(klass)
58 klass
[all...]
H A Daction_worker.rb4 def perform(action_id, klass, method, *args)
7 action.resource = klass.constantize.send(method, *args)
H A Drake_helper.rb86 def self.update_or_create_by_name(klass, h)
87 x = klass.find_by_name(h[:name])
89 x = klass.create!(h)
H A Dgraph_data_fetcher.rb20 def self.mapping_for(klass)
21 mapping_klass = MAPPINGS[klass]
/ontohub/db/migrate/
H A D20160310132620_move_loc_id_to_own_model.rb14 CLASSES.each do |klass|
15 klass.find_each do |object|
22 class: normalized_class(klass)}
25 specific_type: normalized_class(klass).to_s)
46 def normalized_class(klass)
48 if [DistributedOntology, SingleOntology].include?(klass)
51 klass
/ontohub/db/data/
H A D20160310132620_move_loc_id_to_own_model_data.rb29 klass = duplicate[:class]
30 if klass == Ontology || Ontology.subclasses.include?(klass)
38 klass.find(duplicate[:id]).ontology
H A D20160719133546_preload_locids.rb9 klass = object.class.to_s
11 loc_id.specific_type = klass
/ontohub/app/models/
H A Daction.rb8 def self.enclose!(initial_eta, klass, method, *args)
10 ActionWorker.perform_async(action.id, klass.to_s, method, *args)
H A Dproof_attempt.rb47 klass = self.class.to_s.underscore.dasherize
48 "#{theorem.locid}#{sep}#{klass}-#{number}"
/ontohub/features/step_definitions/
H A Dontology_versions_steps.rb23 selector = %(.evaluation-state[data-id="#{id}"][data-klass="OntologyVersion"])

Completed in 18 milliseconds