Class: ConvenientService::Dependencies::Queries::Gems::ActiveModel Private

Inherits:
Object
  • Object
show all
Defined in:
lib/convenient_service/dependencies/queries/gems/active_model.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.loaded? ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Style/TernaryParentheses

Returns:

  • (Boolean)


24
25
26
# File 'lib/convenient_service/dependencies/queries/gems/active_model.rb', line 24

def loaded?
  (defined? ::ActiveModel) ? true : false
end

.version ⇒ ConvenientService::Dependencies::Queries::Version

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



35
36
37
# File 'lib/convenient_service/dependencies/queries/gems/active_model.rb', line 35

def version
  loaded? ? Version.new(::ActiveModel.version) : Version.null_version
end