From 2637b768fe4e97f4ea210dce23fbac99033afaff Mon Sep 17 00:00:00 2001 From: Charl Matthee Date: Sun, 27 Sep 2015 09:31:52 +0200 Subject: [PATCH 1/3] Update README with ActiveAttr addition. --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 37efa47..632fba1 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ Synopsis Acts_as_xlsx is an active record plugin for Axlsx. It makes generating excel spreadsheets from any subclass of ActiveRecord::Base as simple as a couple of lines of code. +This fork adds support for mixing acts_as_xlsx into [ActiveAttr](https://github.com/cgriego/active_attr). + Feature List ------------ From d4f8a42abbd49fb0f2666e69765c4ee390f1a720 Mon Sep 17 00:00:00 2001 From: Charl Matthee Date: Sun, 27 Sep 2015 09:37:53 +0200 Subject: [PATCH 2/3] Added support for mixing into ActiveAttr. --- lib/acts_as_xlsx/ar.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/acts_as_xlsx/ar.rb b/lib/acts_as_xlsx/ar.rb index 595bd56..6186136 100644 --- a/lib/acts_as_xlsx/ar.rb +++ b/lib/acts_as_xlsx/ar.rb @@ -97,4 +97,5 @@ def to_xlsx(options = {}) require 'active_record' ActiveRecord::Base.send :include, Axlsx::Ar - +require 'active_attr' +ActiveAttr::BasicModel.send :include, Axlsx::Ar From df5deb8f3088abbddf0fff61ca3cfb87b9652d03 Mon Sep 17 00:00:00 2001 From: Charl Matthee Date: Thu, 14 May 2020 05:54:15 +0000 Subject: [PATCH 3/3] Bumped the axlsx dep version to get access to https://github.com/mes/axlsx/commit/6b27a57b0c20f85865750bf5987bcea8e67941c7. --- acts_as_xlsx.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acts_as_xlsx.gemspec b/acts_as_xlsx.gemspec index c606276..2aa21fe 100644 --- a/acts_as_xlsx.gemspec +++ b/acts_as_xlsx.gemspec @@ -17,7 +17,7 @@ Gem::Specification.new do |s| s.files = Dir.glob("{lib/**/*}") + %w{ LICENSE README.md Rakefile CHANGELOG.md .yardopts } s.test_files = Dir.glob("{test/**/*}") - s.add_runtime_dependency 'axlsx', '>= 1.0.13' + s.add_runtime_dependency 'axlsx', '>= 3.0.0.pre' s.add_runtime_dependency 'activerecord', '>= 2.3.9' s.add_runtime_dependency 'i18n', '>= 0.4.1'