Class: ConvenientService::Support::Gems::ActiveModel Private
- Inherits:
-
Object
- Object
- ConvenientService::Support::Gems::ActiveModel
- Defined in:
- lib/convenient_service/support/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
-
.loaded? ⇒ Boolean
private
rubocop:disable Style/TernaryParentheses.
- .version ⇒ ConvenientService::Support::Version private
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
18 19 20 |
# File 'lib/convenient_service/support/gems/active_model.rb', line 18 def loaded? (defined? ::ActiveModel) ? true : false end |
.version ⇒ ConvenientService::Support::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.
29 30 31 |
# File 'lib/convenient_service/support/gems/active_model.rb', line 29 def version loaded? ? Support::Version.new(::ActiveModel.version) : Support::Version.null_version end |