Module: ActiveAdmin::Xls::DSL
- Defined in:
- lib/active_admin/xls/dsl.rb
Overview
Extends activeadmin dsl to include xls
Instance Method Summary collapse
-
#xls(options = {}, &block) ⇒ Object
Creates a default XLS Builder to respond to xls requests for this resource.
Instance Method Details
#xls(options = {}, &block) ⇒ Object
Creates a default XLS Builder to respond to xls requests for this resource. Options are passed to the Builder initialize method.
65 66 67 68 69 70 71 |
# File 'lib/active_admin/xls/dsl.rb', line 65 def xls( = {}, &block) config.xls_builder = ActiveAdmin::Xls::Builder.new( config.resource_class, , &block ) end |