Module: Blueprinter::ActiveRecordHelpers::SingletonMethods Private
- Defined in:
- lib/blueprinter/helpers/active_record_helpers.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#active_record_relation?(object) ⇒ 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.
12 13 14 15 |
# File 'lib/blueprinter/helpers/active_record_helpers.rb', line 12 def active_record_relation?(object) !!(defined?(ActiveRecord::Relation) && object.is_a?(ActiveRecord::Relation)) end |