lib/active_admin/csv_builder.rb in activeadmin-0.5.0 vs lib/active_admin/csv_builder.rb in activeadmin-0.5.1
- old
+ new
@@ -23,14 +23,15 @@
csv_builder.column(content_column.name.to_sym)
end
end
end
- attr_reader :columns, :column_separator
+ attr_reader :columns, :column_separator, :options
def initialize(options={}, &block)
@columns = []
@column_separator = options.delete(:separator)
+ @options = options.delete(:options)
instance_eval &block if block_given?
end
# Add a column
def column(name, &block)