Module: RailsExcel::Delegation::Controller
- Defined in:
- lib/rails-excel/delegation.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rails-excel/delegation.rb', line 13 def self.included(base) base.module_eval do class_inheritable_accessor :excel_strategy, :instance_writer => false def excel_strategy @excel_strategy ||= self.class.excel_strategy end def excel_strategy=(strategy) @excel_strategy = strategy end self.excel_strategy = ::RailsExcel.strategy end end |