lib/octoparts/representer/aggregate_request_representer.rb in octoparts-0.0.9 vs lib/octoparts/representer/aggregate_request_representer.rb in octoparts-0.1.0

- old
+ new

@@ -6,11 +6,13 @@ include Uber::Callable def initialize(camelcase) @camelcase = camelcase end - def call(_represented, args) - args.fetch(:user_options, {})[:camelize] ? @camelcase : @camelcase.underscore + def call(represented) + options = represented.fetch(:options, {}) + user_options = options.fetch(:user_options, {}) + user_options[:camelize] ? @camelcase : @camelcase.underscore end end module AggregateRequestRepresenter include Representable::JSON