Module: Axlsx::Ar::ClassMethods
- Defined in:
- lib/acts_as_xlsx/ar.rb
Overview
Class methods for the mixin
Instance Method Summary collapse
-
#acts_as_xlsx(options = {}) ⇒ Object
defines the class method to inject to_xlsx.
Instance Method Details
#acts_as_xlsx(options = {}) ⇒ Object
defines the class method to inject to_xlsx
28 29 30 31 32 33 |
# File 'lib/acts_as_xlsx/ar.rb', line 28 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 |