Module: Fixably::LoadFromResponse

Included in:
ApplicationResource
Defined in:
lib/fixably/load_from_response.rb

Instance Method Summary collapse

Instance Method Details

#load(attributes, remove_root = false, persisted = false) ⇒ Object

Fixably returns collections as hashes which confuses Active Resource rubocop:disable Style/OptionalBooleanParameter



7
8
9
10
11
12
# File 'lib/fixably/load_from_response.rb', line 7

def load(attributes, remove_root = false, persisted = false)
  super(attributes, remove_root, persisted)
  load_nested_paginated_collections
  remove_empty_associations
  self
end