File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,17 @@ Below is an example of the DSL
104104
105105``` ruby
106106ActiveAdmin .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.
You can’t perform that action at this time.
0 commit comments