lib/active_admin/csv_builder.rb in activeadmin-2.1.0 vs lib/active_admin/csv_builder.rb in activeadmin-2.2.0
- old
+ new
@@ -30,10 +30,12 @@
COLUMN_TRANSITIVE_OPTIONS = [:humanize_name].freeze
def initialize(options = {}, &block)
@resource = options.delete(:resource)
- @columns, @options, @block = [], options, block
+ @columns = []
+ @options = options
+ @block = block
end
def column(name, options = {}, &block)
@columns << Column.new(name, @resource, column_transitive_options.merge(options), block)
end