Skip to content

Commit 4c2ae1f

Browse files
committed
Added whitelist and skip_header to readme
1 parent f11d357 commit 4c2ae1f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,17 @@ Below is an example of the DSL
104104

105105
```ruby
106106
ActiveAdmin.register Post do
107+
107108
# i18n_scope and header style are set via options
108109
xlsx(:i18n_scope => [:active_admin, :axlsx, :post],
109110
:header_style => {:bg_color => 'FF0000', :fg_color => 'FF' }) do
110111

112+
# Specify that you want to white list column output.
113+
# whitelist
114+
115+
# Do not serialize the header, only output data.
116+
# skip_header
117+
111118
# deleting columns from the report
112119
delete_columns :id, :created_at, :updated_at
113120

@@ -161,6 +168,10 @@ bundle exec rake
161168
- Upgraded to most recent version of Axlsx. This introduces some non-backwards compatible
162169
changes and pushes rubyzip up to 1.0.0
163170
- Added support for scoped collections #18
171+
- Added support to specify whitelist in in configuration. This will clear all columns and
172+
you can then specify only the fields you want.
173+
- Added support for skip_header in the builder/DSL.
174+
- Moved initialization into after config block in an attempt to not crunch assets:precompile
164175

165176
**2013.06.02** Release 2.1.2
166177
- builder#collection is now set on serialize and is available in before and after filters.

0 commit comments

Comments
 (0)