Module: Legion::Extensions::Apollo::Helpers::DataModels

Defined in:
lib/legion/extensions/apollo/helpers/data_models.rb

Class Method Summary collapse

Class Method Details

.apollo_access_logObject



17
18
19
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 17

def apollo_access_log
  namespaced_apollo_model(:AccessLog) || legacy_model(:ApolloAccessLog)
end

.apollo_access_log_available?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 33

def apollo_access_log_available?
  !apollo_access_log.nil?
end

.apollo_entryObject



9
10
11
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 9

def apollo_entry
  namespaced_apollo_model(:Entry) || legacy_model(:ApolloEntry)
end

.apollo_entry_available?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 25

def apollo_entry_available?
  !apollo_entry.nil?
end

.apollo_expertiseObject



21
22
23
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 21

def apollo_expertise
  namespaced_apollo_model(:Expertise) || legacy_model(:ApolloExpertise)
end

.apollo_expertise_available?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 37

def apollo_expertise_available?
  !apollo_expertise.nil?
end

.apollo_relationObject



13
14
15
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 13

def apollo_relation
  namespaced_apollo_model(:Relation) || legacy_model(:ApolloRelation)
end

.apollo_relation_available?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/legion/extensions/apollo/helpers/data_models.rb', line 29

def apollo_relation_available?
  !apollo_relation.nil?
end