Module: Axlsx::Ar::ClassMethods
- Defined in:
- lib/acts_as_xlsx.rb
Overview
Class methods for the mixin
Instance Method Summary (collapse)
-
- (Object) acts_as_xlsx(options = {})
defines the class method to inject to_xlsx.
Instance Method Details
- (Object) acts_as_xlsx(options = {})
defines the class method to inject to_xlsx
27 28 29 30 31 32 |
# File 'lib/acts_as_xlsx.rb', line 27 def acts_as_xlsx(={}) cattr_accessor :xlsx_i18n, :xlsx_columns self.xlsx_i18n = .delete(:i18n) || false self.xlsx_columns = .delete(:columns) || self.column_names.map { |c| c = c.to_sym } extend Axlsx::Ar::SingletonMethods end |