module ActionController::Exportation

Private Instance Methods

build_exporter(resource, options) click to toggle source
# File lib/action_controller/exportation.rb, line 34
def build_exporter(resource, options)
  return unless (exporter = ActiveModel::ArrayExporter)
  options[:scope] ||= exportation_scope
  exporter.new(resource, options)
end
exportation_scope() click to toggle source
# File lib/action_controller/exportation.rb, line 29
def exportation_scope
  scope = self.class._exportation_scope
  send(scope) if scope && respond_to?(scope, true)
end