Module: ActiveModel::Archive::ClassMethods
- Defined in:
- lib/active_model_archive.rb
Instance Method Summary collapse
-
#archiver_type=(type) ⇒ Object
Widget.archiver_type = :json Widget.archiver_type = :csv.
Instance Method Details
#archiver_type=(type) ⇒ Object
Widget.archiver_type = :json Widget.archiver_type = :csv
41 42 43 |
# File 'lib/active_model_archive.rb', line 41 def archiver_type=(type) self.archiver = "ActiveModelArchive::Archiver::#{type.to_s.camelize}".constantize.new end |