Skip to content

Commit

Permalink
Make the meat and potatoes of streaming protected.
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig McNamara committed Apr 2, 2014
1 parent cf93002 commit 66c935e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/active_admin/resource_controller/streaming.rb
Expand Up @@ -14,6 +14,12 @@ module Streaming

module CSVStream

def index
super { |format| format.csv { stream_csv collection } }
end

protected

def csv_line(resource, columns)
columns.map do |column|
call_method_or_proc_on resource, column.data
Expand All @@ -32,10 +38,6 @@ def stream_csv(collection)
end
end
end

def index
super { |format| format.csv { stream_csv collection } }
end
end
end
end
Expand Down

0 comments on commit 66c935e

Please sign in to comment.