class Draper::DecoratedAssociation
def initialize(owner, association, options)
def initialize(owner, association, options) options.assert_valid_keys(:with, :scope, :context) @owner = owner @association = association @scope = options[:scope] decorator_class = options[:with] context = options.fetch(:context, ->(context){ context }) @factory = Draper::Factory.new(with: decorator_class, context: context) end