lib/octoparts/representer/aggregate_request_representer.rb in octoparts-0.0.8 vs lib/octoparts/representer/aggregate_request_representer.rb in octoparts-0.0.9
- old
+ new
@@ -7,10 +7,10 @@
def initialize(camelcase)
@camelcase = camelcase
end
def call(_represented, args)
- args[:camelize] ? @camelcase : @camelcase.underscore
+ args.fetch(:user_options, {})[:camelize] ? @camelcase : @camelcase.underscore
end
end
module AggregateRequestRepresenter
include Representable::JSON